mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix command list to extend, not append
This commit is contained in:
parent
0d706d25b6
commit
8166302d3d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue