0
0
mirror of https://github.com/thegeeklab/corenetworks.git synced 2024-11-14 06:40:39 +00:00

fix passed variable basic auth to fix broken env variables

This commit is contained in:
Robert Kaussow 2020-05-10 17:07:39 +02:00
parent 6bae0504be
commit 6b2468414a
2 changed files with 6 additions and 3 deletions

View File

@ -1 +1,2 @@
* initial release * BUGFIX
* fix passed variable basic auth to fix broken env variables

View File

@ -97,9 +97,11 @@ class CoreNetworks():
} }
if self.config["api_token"]: if self.config["api_token"]:
self._auth = CoreNetworksTokenAuth(api_token) self._auth = CoreNetworksTokenAuth(self.config["api_token"])
else: else:
self._auth = CoreNetworksBasicAuth(user, password, self.__endpoint) self._auth = CoreNetworksBasicAuth(
self.config["user"], self.config["password"], self.__endpoint
)
@staticmethod @staticmethod
def _config(user, password, api_token, auto_commit): def _config(user, password, api_token, auto_commit):