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:
parent
6bae0504be
commit
6b2468414a
@ -1 +1,2 @@
|
||||
* initial release
|
||||
* BUGFIX
|
||||
* fix passed variable basic auth to fix broken env variables
|
||||
|
@ -97,9 +97,11 @@ class CoreNetworks():
|
||||
}
|
||||
|
||||
if self.config["api_token"]:
|
||||
self._auth = CoreNetworksTokenAuth(api_token)
|
||||
self._auth = CoreNetworksTokenAuth(self.config["api_token"])
|
||||
else:
|
||||
self._auth = CoreNetworksBasicAuth(user, password, self.__endpoint)
|
||||
self._auth = CoreNetworksBasicAuth(
|
||||
self.config["user"], self.config["password"], self.__endpoint
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def _config(user, password, api_token, auto_commit):
|
||||
|
Loading…
Reference in New Issue
Block a user