Return error when persister fails to modify config

Kubernetes-commit: 9efd1fd12f646b0a328702cca4c52fdf0966212d
This commit is contained in:
Fabian Ruff
2021-02-16 08:45:59 +01:00
committed by Kubernetes Publisher
parent 21dd7eaeef
commit a125444d4d

View File

@@ -374,7 +374,7 @@ func (p *persister) Persist(config map[string]string) error {
authInfo, ok := newConfig.AuthInfos[p.user]
if ok && authInfo.AuthProvider != nil {
authInfo.AuthProvider.Config = config
ModifyConfig(p.configAccess, *newConfig, false)
return ModifyConfig(p.configAccess, *newConfig, false)
}
return nil
}