From 523cdc6959cf63aadbb3e248b35fd446f1414663 Mon Sep 17 00:00:00 2001 From: Nick Harring Date: Tue, 12 May 2015 14:42:21 -0700 Subject: [PATCH] Removed as keyword for 2.4 and earlier backwards compat. --- lib/ansible/modules/extras/monitoring/circonus_annotation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/monitoring/circonus_annotation.py b/lib/ansible/modules/extras/monitoring/circonus_annotation.py index ebb5ecc175..e2b6d8d79e 100644 --- a/lib/ansible/modules/extras/monitoring/circonus_annotation.py +++ b/lib/ansible/modules/extras/monitoring/circonus_annotation.py @@ -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 *