Cast to list in case tags is a tuple.

This commit is contained in:
NLR 2017-08-02 17:57:41 +02:00
parent 287b57b5c5
commit 78fccdc7e2

View file

@ -476,7 +476,7 @@ def set_user_tags(name, tags, runas=None):
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"