Fix input container host name
This commit is contained in:
parent
009535ba8d
commit
476fe8e671
3
main.py
3
main.py
@ -66,8 +66,9 @@ class Access(object):
|
||||
Returns:
|
||||
_dict_: _access key_
|
||||
"""
|
||||
host = self.input_container
|
||||
url = 'http://{}:1500/api/auth/v4/user/{}/key'.format(
|
||||
self.input_container, admin['id']
|
||||
host, admin['id']
|
||||
)
|
||||
headers = {"Internal-Auth": "on", "Accept": "application/json"}
|
||||
req = requests.post(url, headers=headers, data={})
|
||||
|
Loading…
x
Reference in New Issue
Block a user