mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -03:30
Use utf-8 & properly parse hostname from registry URL
This commit is contained in:
@@ -842,7 +842,7 @@ class BaseTask(object):
|
||||
username = cred.get_input('username')
|
||||
password = cred.get_input('password')
|
||||
token = "{}:{}".format(username, password)
|
||||
auth_data = {'auths': {host: {'auth': b64encode(token.encode('ascii')).decode()}}}
|
||||
auth_data = {'auths': {host: {'auth': b64encode(token.encode('UTF-8')).decode('UTF-8')}}}
|
||||
authfile.write(json.dumps(auth_data, indent=4))
|
||||
params["container_options"].append(f'--authfile={authfile.name}')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user