simplified if
This commit is contained in:
parent
15c7288ab9
commit
516d61f1ae
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ class RabbitMqUser(object):
|
||||||
self._rabbitmqctl = module.get_bin_path('rabbitmqctl', True)
|
self._rabbitmqctl = module.get_bin_path('rabbitmqctl', True)
|
||||||
|
|
||||||
def _exec(self, args, run_in_check_mode=False):
|
def _exec(self, args, run_in_check_mode=False):
|
||||||
if not self.module.check_mode or (self.module.check_mode and run_in_check_mode):
|
if not self.module.check_mode or run_in_check_mode:
|
||||||
cmd = [self._rabbitmqctl, '-q']
|
cmd = [self._rabbitmqctl, '-q']
|
||||||
if self.node is not None:
|
if self.node is not None:
|
||||||
cmd.extend(['-n', self.node])
|
cmd.extend(['-n', self.node])
|
||||||
|
|
Loading…
Reference in a new issue