fixed msg bug in library/cloud/quantum_network

This commit is contained in:
Derek Carter 2013-06-13 23:02:04 -04:00
parent bc6416d202
commit 7a73559802

View file

@ -167,7 +167,7 @@ def _get_net_id(quantum, module):
try:
networks = quantum.list_networks(**kwargs)
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']:
return None
return networks['networks'][0]['id']