fix(region): storage conf update (#21390)

This commit is contained in:
屈轩
2024-10-11 18:04:48 +08:00
committed by GitHub
parent 941c49e854
commit b1d0dc4e5f
+1 -1
View File
@@ -121,7 +121,7 @@ func (self *SStorage) ValidateUpdateData(ctx context.Context, userCred mcclient.
if self.StorageConf != nil {
confs, _ := self.StorageConf.GetMap()
for k, v := range confs {
if input.StorageConf.Contains(k) {
if !input.StorageConf.Contains(k) {
continue
}
input.StorageConf.Set(k, v)