Skip to content

Commit

Permalink
Select correct default Docker Notary credentials
Browse files Browse the repository at this point in the history
Signed-off-by: Radu M <root@radu.sh>
  • Loading branch information
Radu M committed Feb 24, 2020
1 parent 9720dfd commit dae7014
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 dae7014

Please sign in to comment.