From ed3d2482341ffe5f4b0c9639b0f391d4ded2dd4d Mon Sep 17 00:00:00 2001 From: Rob Date: Thu, 8 Oct 2015 14:03:40 +1100 Subject: [PATCH] Move import statements for easier debugging (correct line numbers) --- lib/ansible/modules/cloud/amazon/ec2_metric_alarm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_metric_alarm.py b/lib/ansible/modules/cloud/amazon/ec2_metric_alarm.py index e1e918f161d..54d607c395e 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_metric_alarm.py +++ b/lib/ansible/modules/cloud/amazon/ec2_metric_alarm.py @@ -115,9 +115,6 @@ EXAMPLES = ''' import sys -from ansible.module_utils.basic import * -from ansible.module_utils.ec2 import * - try: import boto.ec2.cloudwatch from boto.ec2.cloudwatch import CloudWatchConnection, MetricAlarm @@ -282,4 +279,8 @@ def main(): elif state == 'absent': delete_metric_alarm(connection, module) + +from ansible.module_utils.basic import * +from ansible.module_utils.ec2 import * + main()