diff --git a/cloud/amazon/s3_bucket.py b/cloud/amazon/s3_bucket.py index 7d07f3b856d..30c0e154242 100644 --- a/cloud/amazon/s3_bucket.py +++ b/cloud/amazon/s3_bucket.py @@ -109,6 +109,9 @@ EXAMPLES = ''' import xml.etree.ElementTree as ET import urlparse +from ansible.module_utils.basic import * +from ansible.module_utils.ec2 import * + try: import boto.ec2 from boto.s3.connection import OrdinaryCallingFormat, Location @@ -441,9 +444,5 @@ def main(): elif state == 'absent': destroy_bucket(connection, module, flavour=flavour) -from ansible.module_utils.basic import * -from ansible.module_utils.ec2 import * -import urlparse - if __name__ == '__main__': main()