We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9443dec + d7caa60 commit 33b430aCopy full SHA for 33b430a
docker/api/build.py
@@ -308,7 +308,8 @@ def _set_auth_headers(self, headers):
308
auth_data = self._auth_configs.get_all_credentials()
309
310
# See https://github.com/docker/docker-py/issues/1683
311
- if auth.INDEX_URL not in auth_data and auth.INDEX_URL in auth_data:
+ if (auth.INDEX_URL not in auth_data and
312
+ auth.INDEX_NAME in auth_data):
313
auth_data[auth.INDEX_URL] = auth_data.get(auth.INDEX_NAME, {})
314
315
log.debug(
0 commit comments