mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-01 19:54:24 -07:00
Move import statements for easier debugging (correct line numbers)
This commit is contained in:
parent
205d607320
commit
ed3d248234
1 changed files with 4 additions and 3 deletions
|
@ -115,9 +115,6 @@ EXAMPLES = '''
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from ansible.module_utils.basic import *
|
|
||||||
from ansible.module_utils.ec2 import *
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import boto.ec2.cloudwatch
|
import boto.ec2.cloudwatch
|
||||||
from boto.ec2.cloudwatch import CloudWatchConnection, MetricAlarm
|
from boto.ec2.cloudwatch import CloudWatchConnection, MetricAlarm
|
||||||
|
@ -282,4 +279,8 @@ def main():
|
||||||
elif state == 'absent':
|
elif state == 'absent':
|
||||||
delete_metric_alarm(connection, module)
|
delete_metric_alarm(connection, module)
|
||||||
|
|
||||||
|
|
||||||
|
from ansible.module_utils.basic import *
|
||||||
|
from ansible.module_utils.ec2 import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue