1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

simplified if

This commit is contained in:
Brian Coca 2017-03-03 14:32:37 -05:00
parent 15c7288ab9
commit 516d61f1ae

View file

@ -153,7 +153,7 @@ class RabbitMqUser(object):
self._rabbitmqctl = module.get_bin_path('rabbitmqctl', True)
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']
if self.node is not None:
cmd.extend(['-n', self.node])