mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #42693 from gilbsgilbs/fix-rabbitmq-tags
Fix RabbitMQ tags not properly set.
This commit is contained in:
commit
21cf15f9c3
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue