mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Return error when persister fails to modify config
This commit is contained in:
parent
bcfa3a0a36
commit
9efd1fd12f
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user