replaced ',' for whitespace as split seperator for rabbitmq tags

- fixed lint error
This commit is contained in:
Stefan Schweer 2016-03-22 18:06:46 +01:00
parent d317f7134f
commit 5dff2e3003

View File

@ -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 []