mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Merge pull request #6275 from mscherer/fix_nova_compute_exception
Fix wrong module name for exception in nova compute
This commit is contained in:
commit
f1ad0b8fb6
1 changed files with 2 additions and 2 deletions
|
@ -238,9 +238,9 @@ def main():
|
||||||
service_type='compute')
|
service_type='compute')
|
||||||
try:
|
try:
|
||||||
nova.authenticate()
|
nova.authenticate()
|
||||||
except exc.Unauthorized, e:
|
except exceptions.Unauthorized, e:
|
||||||
module.fail_json(msg = "Invalid OpenStack Nova credentials.: %s" % e.message)
|
module.fail_json(msg = "Invalid OpenStack Nova credentials.: %s" % e.message)
|
||||||
except exc.AuthorizationFailure, e:
|
except exceptions.AuthorizationFailure, e:
|
||||||
module.fail_json(msg = "Unable to authorize user: %s" % e.message)
|
module.fail_json(msg = "Unable to authorize user: %s" % e.message)
|
||||||
|
|
||||||
if module.params['state'] == 'present':
|
if module.params['state'] == 'present':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue