diff options
Diffstat (limited to 'docker/api')
-rw-r--r-- | docker/api/build.py | 4 | ||||
-rw-r--r-- | docker/api/daemon.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docker/api/build.py b/docker/api/build.py index c4fc37e..5db5838 100644 --- a/docker/api/build.py +++ b/docker/api/build.py @@ -286,10 +286,10 @@ class BuildApiMixin(object): # If we don't have any auth data so far, try reloading the config # file one more time in case anything showed up in there. - if not self._auth_configs: + if not self._auth_configs or self._auth_configs.is_empty: log.debug("No auth config in memory - loading from filesystem") self._auth_configs = auth.load_config( - credsore_env=self.credsore_env + credstore_env=self.credstore_env ) # Send the full auth configuration (if any exists), since the build diff --git a/docker/api/daemon.py b/docker/api/daemon.py index a2936f2..f715a13 100644 --- a/docker/api/daemon.py +++ b/docker/api/daemon.py @@ -127,7 +127,7 @@ class DaemonApiMixin(object): self._auth_configs = auth.load_config( dockercfg_path, credstore_env=self.credstore_env ) - elif not self._auth_configs: + elif not self._auth_configs or self._auth_configs.is_empty: self._auth_configs = auth.load_config( credstore_env=self.credstore_env ) |