mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Cleanup imports
This commit is contained in:
parent
d67cbaa274
commit
5c56e79a8f
1 changed files with 5 additions and 7 deletions
|
@ -94,8 +94,10 @@ EXAMPLES = '''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import csv
|
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']
|
SUPPORTED_DISTROS = ['ubuntu']
|
||||||
|
|
||||||
|
@ -115,6 +117,7 @@ AWS_REGIONS = ['ap-northeast-1',
|
||||||
'us-west-2',
|
'us-west-2',
|
||||||
"us-gov-west-1"]
|
"us-gov-west-1"]
|
||||||
|
|
||||||
|
|
||||||
def get_url(module, url):
|
def get_url(module, url):
|
||||||
""" Get url and return response """
|
""" Get url and return response """
|
||||||
|
|
||||||
|
@ -209,10 +212,5 @@ def main():
|
||||||
module.fail_json(msg="Unsupported distro: %s" % distro)
|
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__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue