mirror of https://github.com/knative/func.git
Fix OpenShift credential loader (#876)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
efb7996da7
commit
8dd90bff19
|
@ -119,7 +119,10 @@ func GetDockerCredentialLoaders() []creds.CredentialsCallback {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
cc := rawConf.Contexts[rawConf.CurrentContext]
|
cc, ok := rawConf.Contexts[rawConf.CurrentContext]
|
||||||
|
if !ok {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
authInfo := rawConf.AuthInfos[cc.AuthInfo]
|
authInfo := rawConf.AuthInfos[cc.AuthInfo]
|
||||||
|
|
||||||
var user string
|
var user string
|
||||||
|
|
Loading…
Reference in New Issue