1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Removed as keyword for 2.4 and earlier backwards compat.

This commit is contained in:
Nick Harring 2015-05-12 14:42:21 -07:00 committed by Matt Clay
parent de43779565
commit 523cdc6959

View file

@ -124,8 +124,8 @@ def main():
annotation = create_annotation(module)
try:
resp = post_annotation(annotation, module.params['api_key'])
except requests.exceptions.RequestException as e:
module.fail_json(msg='Request Failed', reason=e)
except requests.exceptions.RequestException, err_str:
module.fail_json(msg='Request Failed', reason=err_str)
module.exit_json(changed=True, annotation=resp.json())
from ansible.module_utils.basic import *