mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Update parameters, add whitespace
This commit is contained in:
parent
61c2968a7c
commit
c532c6fe61
@ -100,12 +100,14 @@ inventory_id: the_ID_of_targeted_ansible_tower_inventory
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
from ansible.module_utils import six
|
||||
from ansible.module_utils.urls import Request
|
||||
from ansible.module_utils._text import to_text, to_native
|
||||
from ansible.errors import AnsibleOptionsError
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin
|
||||
from ansible.config.manager import ensure_type
|
||||
|
||||
from ..module_utils.ansible_tower import make_request
|
||||
|
||||
# Python 2/3 Compatibility
|
||||
|
||||
@ -32,6 +32,7 @@ __metaclass__ = type
|
||||
import json
|
||||
import os
|
||||
import traceback
|
||||
|
||||
from ansible.module_utils._text import to_native
|
||||
from ansible.module_utils.urls import urllib_error, ConnectionError, socket, httplib
|
||||
from ansible.errors import AnsibleParserError
|
||||
@ -50,7 +51,7 @@ except ImportError:
|
||||
from ansible.module_utils.basic import AnsibleModule, missing_required_lib
|
||||
|
||||
|
||||
def make_request(module, request_handler, tower_url):
|
||||
def make_request(request_handler, tower_url):
|
||||
'''
|
||||
Makes the request to given URL, handles errors, returns JSON
|
||||
'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user