diff --git a/lib/ansible/modules/extras/messaging/rabbitmq_exchange.py b/lib/ansible/modules/extras/messaging/rabbitmq_exchange.py index 55440524b6..d69a536bfe 100644 --- a/lib/ansible/modules/extras/messaging/rabbitmq_exchange.py +++ b/lib/ansible/modules/extras/messaging/rabbitmq_exchange.py @@ -8,7 +8,7 @@ version_added: "2.0" short_description: This module manages rabbitMQ exchanges description: - This module uses rabbitMQ Rest API to create/delete exchanges -requirements: [ python requests ] +requirements: [ "requests >= 1.0.0" ] options: name: description: @@ -115,7 +115,7 @@ def main(): urllib.quote(module.params['vhost'],''), module.params['name'] ) - + # Check if exchange already exists r = requests.get( url, auth=(module.params['login_user'],module.params['login_password']))