Merge pull request #2310 from angstwad/fix-rabbitmq-user

Fix Traceback on rabbitmq_user when "node" argument is used
reviewable/pr18780/r1
Matt Martz 9 years ago
commit f78b7d65e1

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

Loading…
Cancel
Save