Merge pull request #99111 from databus23/patch-5

Return error when persister fails to modify config
This commit is contained in:
Kubernetes Prow Robot 2021-02-18 15:02:48 -08:00 committed by GitHub
commit a4f412dc76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}