Skip to content

Commit

Permalink
fix: credentials: set server address on auth if it isn't set (#238)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville authored Apr 12, 2024
1 parent 8d6af6b commit 5a8a685
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/credentials/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ func (s *Store) Get(toolName string) (*Credential, bool, error) {
return nil, false, nil
}

if auth.ServerAddress == "" {
auth.ServerAddress = toolNameWithCtx(toolName, s.credCtx) // Not sure why we have to do this, but we do.
}

cred, err := credentialFromDockerAuthConfig(auth)
if err != nil {
return nil, false, err
Expand Down

0 comments on commit 5a8a685

Please sign in to comment.