From ca61b2dd9d172644a5af7d9602cfeeab6e1b85ab 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 --- messaging/rabbitmq_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messaging/rabbitmq_user.py b/messaging/rabbitmq_user.py index 2e902eaa696..103650e2c94 100644 --- a/messaging/rabbitmq_user.py +++ b/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()