diff --git a/cloud/amazon/ec2_metric_alarm.py b/cloud/amazon/ec2_metric_alarm.py index dcd71831027..44e61b84f14 100644 --- a/cloud/amazon/ec2_metric_alarm.py +++ b/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()