Merge pull request #42693 from gilbsgilbs/fix-rabbitmq-tags

Fix RabbitMQ tags not properly set.
This commit is contained in:
Mike Place 2017-08-03 15:23:08 -05:00 committed by GitHub
commit 21cf15f9c3

View file

@ -472,11 +472,11 @@ def set_user_tags(name, tags, runas=None):
if runas is None:
runas = salt.utils.get_user()
if tags and isinstance(tags, (list, tuple)):
tags = ' '.join(tags)
if not isinstance(tags, (list, tuple)):
tags = [tags]
res = __salt__['cmd.run'](
['rabbitmqctl', 'set_user_tags', name, tags],
['rabbitmqctl', 'set_user_tags', name] + list(tags),
runas=runas,
python_shell=False)
msg = "Tag(s) set"