From bef10ecac1692146fd770dcd0a098f28860bce13 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Fri, 30 Nov 2018 13:51:40 -0800 Subject: Add credstore_env to all load_config calls Signed-off-by: Joffrey F --- docker/api/build.py | 4 +++- docker/api/client.py | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docker/api/build.py b/docker/api/build.py index 1723083..c4fc37e 100644 --- a/docker/api/build.py +++ b/docker/api/build.py @@ -288,7 +288,9 @@ class BuildApiMixin(object): # file one more time in case anything showed up in there. if not self._auth_configs: log.debug("No auth config in memory - loading from filesystem") - self._auth_configs = auth.load_config() + self._auth_configs = auth.load_config( + credsore_env=self.credsore_env + ) # Send the full auth configuration (if any exists), since the build # could use any (or all) of the registries. diff --git a/docker/api/client.py b/docker/api/client.py index 197846d..74c4698 100644 --- a/docker/api/client.py +++ b/docker/api/client.py @@ -115,7 +115,7 @@ class APIClient( self._general_configs = config.load_general_config() self._auth_configs = auth.load_config( - config_dict=self._general_configs + config_dict=self._general_configs, credstore_env=credstore_env, ) self.credstore_env = credstore_env @@ -476,4 +476,6 @@ class APIClient( Returns: None """ - self._auth_configs = auth.load_config(dockercfg_path) + self._auth_configs = auth.load_config( + dockercfg_path, credstore_env=self.credstore_env + ) -- cgit v1.2.1