mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
cloudstack: add catch all exceptions and show a user friendly message
Also see GH-493.
This commit is contained in:
parent
e03827b490
commit
6d1873f330
11 changed files with 33 additions and 0 deletions
|
@ -185,6 +185,9 @@ def main():
|
|||
except CloudStackException, e:
|
||||
module.fail_json(msg='CloudStackException: %s' % str(e))
|
||||
|
||||
except Exception, e:
|
||||
module.fail_json(msg='Exception: %s' % str(e))
|
||||
|
||||
module.exit_json(**result)
|
||||
|
||||
# import module snippets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue