From 8bcb8550e43f2b95cb2b2fcc5ae794cf06064984 Mon Sep 17 00:00:00 2001 From: Manuel Sousa Date: Fri, 15 May 2015 16:08:47 +0100 Subject: [PATCH] Missed variable exchangeExists -> exchange_exists --- lib/ansible/modules/extras/messaging/rabbitmq_exchange.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/extras/messaging/rabbitmq_exchange.py b/lib/ansible/modules/extras/messaging/rabbitmq_exchange.py index 8cd519032d7..6c10f5ef319 100644 --- a/lib/ansible/modules/extras/messaging/rabbitmq_exchange.py +++ b/lib/ansible/modules/extras/messaging/rabbitmq_exchange.py @@ -119,10 +119,10 @@ def main(): r = requests.get( url, auth=(module.params['login_user'],module.params['login_password'])) if r.status_code==200: - exchangeExists = True + exchange_exists = True response = r.json() elif r.status_code==404: - exchangeExists = False + exchange_exists = False response = r.text else: module.fail_json( @@ -131,9 +131,9 @@ def main(): ) if module.params['state']=='present': - changeRequired = not exchangeExists + change_required = not exchange_exists else: - changeRequired = exchangeExists + change_required = exchange_exists # Check if attributes change on existing exchange if not changeRequired and r.status_code==200 and module.params['state'] == 'present':