Skip to content

Commit

Permalink
Merge pull request #67 from radu-matei/notary-login
Browse files Browse the repository at this point in the history
Select correct default Docker Notary credentials
  • Loading branch information
Radu M committed Feb 24, 2020
2 parents 9720dfd + dae7014 commit f066004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tuf/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func getAuth(server string) (configtypes.AuthConfig, error) {

auth, ok := cfg.AuthConfigs[s.Hostname()]
if !ok {
if s.Hostname() == DockerNotaryServer {
if s.String() == DockerNotaryServer {
return cfg.AuthConfigs[defaultIndexServer], nil
}
return configtypes.AuthConfig{}, fmt.Errorf("authentication not found for trust server %v", server)
Expand Down

0 comments on commit f066004

Please sign in to comment.