Commit 0840af5b by Derek Carter

fixed msg bug in library/cloud/quantum_network

parent cf2ddb6f
...@@ -167,7 +167,7 @@ def _get_net_id(quantum, module): ...@@ -167,7 +167,7 @@ def _get_net_id(quantum, module):
try: try:
networks = quantum.list_networks(**kwargs) networks = quantum.list_networks(**kwargs)
except Exception as e: except Exception as e:
module.fail_json("Error in listing quantum networks: %s" % e.message) module.fail_json(msg = "Error in listing quantum networks: %s" % e.message)
if not networks['networks']: if not networks['networks']:
return None return None
return networks['networks'][0]['id'] return networks['networks'][0]['id']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment