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()