NewNativeStore has to be called with the CredentialsStore from the configfile. See also 07c4b4124b (diff-b082736d194e2fdfc6aca9d0c86a781bL26)

pull/35/head
Fabrizio Steiner 8 years ago
parent 37f7248233
commit c641668356

@ -87,7 +87,7 @@ func ParseServerAddress(ref string) (string, error) {
// on the settings provided in the configuration file. // on the settings provided in the configuration file.
func CredentialsStore(configFile configfile.ConfigFile) credentials.Store { func CredentialsStore(configFile configfile.ConfigFile) credentials.Store {
if configFile.CredentialsStore != "" { if configFile.CredentialsStore != "" {
return credentials.NewNativeStore(&configFile) return credentials.NewNativeStore(&configFile, configFile.CredentialsStore)
} }
return credentials.NewFileStore(&configFile) return credentials.NewFileStore(&configFile)
} }

Loading…
Cancel
Save