Removed as keyword for 2.4 and earlier backwards compat.

reviewable/pr18780/r1
Nick Harring 10 years ago
parent 46f6e5f6fc
commit cf2b734ab3

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

Loading…
Cancel
Save