mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed msg bug in library/cloud/quantum_network
This commit is contained in:
parent
cf2ddb6f80
commit
0840af5bda
1 changed files with 1 additions and 1 deletions
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue