mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
bdf1a087cb
commit
4289354ce5
1 changed files with 6 additions and 1 deletions
|
@ -127,6 +127,11 @@ def main():
|
|||
else:
|
||||
dest_type="e"
|
||||
|
||||
if module.params['routing_key'] == "":
|
||||
props = "~"
|
||||
else:
|
||||
props = urllib.quote(module.params['routing_key'],'')
|
||||
|
||||
url = "http://%s:%s/api/bindings/%s/e/%s/%s/%s/%s" % (
|
||||
module.params['login_host'],
|
||||
module.params['login_port'],
|
||||
|
@ -134,7 +139,7 @@ def main():
|
|||
urllib.quote(module.params['name'],''),
|
||||
dest_type,
|
||||
urllib.quote(module.params['destination'],''),
|
||||
urllib.quote(module.params['routing_key'],'')
|
||||
props
|
||||
)
|
||||
|
||||
# Check if exchange already exists
|
||||
|
|
Loading…
Reference in a new issue