diff --git a/main.py b/main.py index df99848..a701b56 100644 --- a/main.py +++ b/main.py @@ -68,14 +68,7 @@ class Access(object): _dict_: _access key_ """ host = self.input_container - if self.platform == "vm": - url = 'http://{}:1500/auth/v4/user/{}/key'.format( - host, admin['id'] - ) - if self.platform == "dci": - url = 'http://{}:1500/auth/v4/user/{}/key'.format( - host, admin['email'] - ) + url = 'http://{}:1500/auth/v4/user/{}/key'.format(host, admin['id']) headers = {"Internal-Auth": "on", "Accept": "application/json"} req = requests.post(url, headers=headers, data={}) result = req.json()