mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-09 19:09:30 +00:00
Return error when persister fails to modify config
Kubernetes-commit: 9efd1fd12f646b0a328702cca4c52fdf0966212d
This commit is contained in:
committed by
Kubernetes Publisher
parent
21dd7eaeef
commit
a125444d4d
@@ -374,7 +374,7 @@ func (p *persister) Persist(config map[string]string) error {
|
|||||||
authInfo, ok := newConfig.AuthInfos[p.user]
|
authInfo, ok := newConfig.AuthInfos[p.user]
|
||||||
if ok && authInfo.AuthProvider != nil {
|
if ok && authInfo.AuthProvider != nil {
|
||||||
authInfo.AuthProvider.Config = config
|
authInfo.AuthProvider.Config = config
|
||||||
ModifyConfig(p.configAccess, *newConfig, false)
|
return ModifyConfig(p.configAccess, *newConfig, false)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user