From 8166302d3d1e150a1d63f13d04d9da1c558bc8ef Mon Sep 17 00:00:00 2001 From: Paul Durivage Date: Wed, 25 May 2016 15:15:00 -0500 Subject: [PATCH] fix command list to extend, not append --- lib/ansible/modules/extras/messaging/rabbitmq_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/messaging/rabbitmq_user.py b/lib/ansible/modules/extras/messaging/rabbitmq_user.py index 2e902eaa69..103650e2c9 100644 --- a/lib/ansible/modules/extras/messaging/rabbitmq_user.py +++ b/lib/ansible/modules/extras/messaging/rabbitmq_user.py @@ -146,7 +146,7 @@ class RabbitMqUser(object): if not self.module.check_mode or (self.module.check_mode and run_in_check_mode): cmd = [self._rabbitmqctl, '-q'] if self.node is not None: - cmd.append(['-n', self.node]) + cmd.extend(['-n', self.node]) rc, out, err = self.module.run_command(cmd + args, check_rc=True) return out.splitlines() return list()