From 516d61f1aefd8b83c95b21c2fe4a1f2a1a5c4a8f Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 3 Mar 2017 14:32:37 -0500 Subject: [PATCH] simplified if --- lib/ansible/modules/messaging/rabbitmq_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/messaging/rabbitmq_user.py b/lib/ansible/modules/messaging/rabbitmq_user.py index 8b51b3e6cf..833189b44d 100644 --- a/lib/ansible/modules/messaging/rabbitmq_user.py +++ b/lib/ansible/modules/messaging/rabbitmq_user.py @@ -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])