mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
replaced ',' for whitespace as split seperator for rabbitmq tags
- fixed lint error
This commit is contained in:
parent
d317f7134f
commit
5dff2e3003
@ -81,8 +81,8 @@ def _check_tags_changes(name, new_tags, runas=None):
|
||||
if isinstance(new_tags, str):
|
||||
new_tags = new_tags.split()
|
||||
try:
|
||||
old_tags = __salt__['rabbitmq.list_users'](runas=runas)[name]
|
||||
users = set(old_tags) - set(new_tags)
|
||||
old_tags = __salt__['rabbitmq.list_users'](runas=runas)[name]
|
||||
users = set(old_tags) - set(new_tags)
|
||||
except CommandExecutionError as err:
|
||||
log.error('Error: {0}'.format(err))
|
||||
return []
|
||||
|
Loading…
Reference in New Issue
Block a user