Skip to content

Commit

Permalink
fix container config.json credential in vault for contain registry cr…
Browse files Browse the repository at this point in the history
…edentials
  • Loading branch information
vramk23 committed Jun 7, 2024
1 parent 32df6aa commit 9a2ba16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capten/agent/internal/api/container_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ func (a *Agent) deleteContainerRegCredential(ctx context.Context, id string) err
}

func parseAndPrepareDockerConfigJSONContent(credMap map[string]string, server string) ([]byte, error) {
userName := credMap["username"]
password := credMap["password"]
userName := credMap["registry-username"]
password := credMap["registry-password"]
return prepareDockerConfigJSONContent(userName, password, server)
}

Expand Down

0 comments on commit 9a2ba16

Please sign in to comment.