parent
84682464c7
commit
e76596a115
1 changed files with 1 additions and 15 deletions
|
@ -28,7 +28,7 @@ import tempfile
|
|||
import traceback
|
||||
|
||||
from ansible.module_utils._text import to_native, to_text, to_bytes
|
||||
from ansible.module_utils.urls import fetch_url as _fetch_url
|
||||
from ansible.module_utils.urls import fetch_url
|
||||
|
||||
try:
|
||||
import cryptography
|
||||
|
@ -63,20 +63,6 @@ class ModuleFailException(Exception):
|
|||
module.fail_json(msg=self.msg, other=self.module_fail_args)
|
||||
|
||||
|
||||
def _lowercase_fetch_url(*args, **kwargs):
|
||||
'''
|
||||
Add lowercase representations of the header names as dict keys
|
||||
|
||||
'''
|
||||
response, info = _fetch_url(*args, **kwargs)
|
||||
|
||||
info.update(dict((header.lower(), value) for (header, value) in info.items()))
|
||||
return response, info
|
||||
|
||||
|
||||
fetch_url = _lowercase_fetch_url
|
||||
|
||||
|
||||
def nopad_b64(data):
|
||||
return base64.urlsafe_b64encode(data).decode('utf8').replace("=", "")
|
||||
|
||||
|
|
Loading…
Reference in a new issue