mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
change according to new output of rabbitmq module functions
This commit is contained in:
parent
cd0212e8ed
commit
28e2594162
1 changed files with 3 additions and 3 deletions
|
@ -97,9 +97,9 @@ def present(name,
|
|||
vhost_exists = __salt__['rabbitmq.vhost_exists'](name, runas=runas)
|
||||
|
||||
if vhost_exists:
|
||||
perms = __salt__['rabbitmq.list_permissions'](name, runas=runas)
|
||||
for perm in perms:
|
||||
if perm == [owner, conf, write, read]:
|
||||
owner_perms = __salt__['rabbitmq.list_permissions'](name, runas=runas)
|
||||
for eowner, eperms in owner_perms.iteritem():
|
||||
if eowner == owner and eperms == [conf, write, read]:
|
||||
ret['comment'] = 'Nothing to do'
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue