Cleanup imports

pull/21080/head
Toshio Kuratomi 8 years ago
parent d67cbaa274
commit 5c56e79a8f

@ -94,8 +94,10 @@ EXAMPLES = '''
'''
import csv
import json
import ansible.module_utils.six.moves.urllib.parse as urlparse
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.urls import fetch_url
SUPPORTED_DISTROS = ['ubuntu']
@ -115,6 +117,7 @@ AWS_REGIONS = ['ap-northeast-1',
'us-west-2',
"us-gov-west-1"]
def get_url(module, url):
""" Get url and return response """
@ -209,10 +212,5 @@ def main():
module.fail_json(msg="Unsupported distro: %s" % distro)
# this is magic, see lib/ansible/module_common.py
from ansible.module_utils.basic import *
from ansible.module_utils.urls import *
if __name__ == '__main__':
main()

Loading…
Cancel
Save