Skip to content

Commit 5a8a685

Browse files
authored
fix: credentials: set server address on auth if it isn't set (#238)
Signed-off-by: Grant Linville <grant@acorn.io>
1 parent 8d6af6b commit 5a8a685

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/credentials/store.go

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ func (s *Store) Get(toolName string) (*Credential, bool, error) {
3535
return nil, false, nil
3636
}
3737

38+
if auth.ServerAddress == "" {
39+
auth.ServerAddress = toolNameWithCtx(toolName, s.credCtx) // Not sure why we have to do this, but we do.
40+
}
41+
3842
cred, err := credentialFromDockerAuthConfig(auth)
3943
if err != nil {
4044
return nil, false, err

0 commit comments

Comments
 (0)