From 2a7b835f7752d21f3f8448dec71a2dff684bf43e Mon Sep 17 00:00:00 2001 From: Caduri Date: Wed, 21 Oct 2015 14:36:23 +0300 Subject: [PATCH] [Bug] exchange name contains chars that needs to be quoted --- messaging/rabbitmq_binding.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/messaging/rabbitmq_binding.py b/messaging/rabbitmq_binding.py index fc69f490fad..ad7fa151461 100644 --- a/messaging/rabbitmq_binding.py +++ b/messaging/rabbitmq_binding.py @@ -131,9 +131,9 @@ def main(): module.params['login_host'], module.params['login_port'], urllib.quote(module.params['vhost'],''), - module.params['name'], + urllib.quote(module.params['name'],''), dest_type, - module.params['destination'], + urllib.quote(module.params['destination'],''), urllib.quote(module.params['routing_key'],'') ) @@ -173,9 +173,9 @@ def main(): module.params['login_host'], module.params['login_port'], urllib.quote(module.params['vhost'],''), - module.params['name'], + urllib.quote(module.params['name'],''), dest_type, - module.params['destination'] + urllib.quote(module.params['destination'],'') ) r = requests.post(