mirror of
https://github.com/genuinetools/reg.git
synced 2024-06-28 02:14:16 -04:00
Fix using a registry anonymously if we have auth for another registry (#40)
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
a05260eaf1
commit
d29d6169ea
|
@ -48,7 +48,9 @@ func GetAuthConfig(c *cli.Context) (types.AuthConfig, error) {
|
|||
return creds, nil
|
||||
}
|
||||
}
|
||||
return types.AuthConfig{}, fmt.Errorf("No authentication credentials exist for %s", c.GlobalString("registry"))
|
||||
return types.AuthConfig{
|
||||
ServerAddress: c.GlobalString("registry"),
|
||||
}, nil
|
||||
}
|
||||
|
||||
// set the auth config as the registryURL, username and Password
|
||||
|
|
Loading…
Reference in a new issue