diff options
author | Michael Scherer <misc@zarb.org> | 2016-10-17 15:36:09 +0200 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2016-10-17 13:43:07 -0700 |
commit | 8dd32a8134f361185799368fce155393605175a3 (patch) | |
tree | 08a39f82f1371007f4b862eac57833c7430be2df /monitoring | |
parent | 10405f94d77233f47b899689219db63933d67d7f (diff) | |
download | ansible-modules-extras-8dd32a8134f361185799368fce155393605175a3.tar.gz |
Make bigpanda module pass python3 sanity check
Diffstat (limited to 'monitoring')
-rw-r--r-- | monitoring/bigpanda.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/monitoring/bigpanda.py b/monitoring/bigpanda.py index df8e55fd..1365eb6a 100644 --- a/monitoring/bigpanda.py +++ b/monitoring/bigpanda.py @@ -170,11 +170,13 @@ def main(): module.exit_json(changed=True, **deployment) else: module.fail_json(msg=json.dumps(info)) - except Exception, e: + except Exception: + e = get_exception() module.fail_json(msg=str(e)) # import module snippets from ansible.module_utils.basic import * from ansible.module_utils.urls import * +from ansible.module_utils.pycompat24 import get_exception if __name__ == '__main__': main() |