Skip to content

Commit 7430eb8

Browse files
committed
Merge branch 'fix-build-auth' of https://github.com/moutten/docker-py into moutten-fix-build-auth
2 parents 933ee52 + ebcfab0 commit 7430eb8

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

docker/auth/auth.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ def encode_header(auth):
9898
return base64.b64encode(auth_json)
9999

100100

101-
def encode_full_header(auth):
102-
""" Returns the given auth block encoded for the X-Registry-Config header.
103-
"""
104-
return encode_header({'configs': auth})
105-
106-
107101
def parse_auth(entries):
108102
"""
109103
Parses authentication entries

docker/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None,
140140
if self._auth_configs:
141141
if headers is None:
142142
headers = {}
143-
headers['X-Registry-Config'] = auth.encode_full_header(
143+
headers['X-Registry-Config'] = auth.encode_header(
144144
self._auth_configs
145145
)
146146

0 commit comments

Comments
 (0)