mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix rabbitmq_vhost.present result when test=True
This commit is contained in:
parent
21a83065aa
commit
aba29a73c4
1 changed files with 2 additions and 1 deletions
|
@ -71,10 +71,11 @@ def present(name):
|
|||
vhost_exists = __salt__['rabbitmq.vhost_exists'](name)
|
||||
|
||||
if __opts__['test']:
|
||||
ret['result'] = None
|
||||
if vhost_exists:
|
||||
ret['result'] = True
|
||||
ret['comment'] = 'VHost {0} already exists'.format(name)
|
||||
else:
|
||||
ret['result'] = None
|
||||
ret['comment'] = 'Creating VHost {0}'.format(name)
|
||||
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue