Skip to content

Commit

Permalink
fix(region): storage conf update (#21390)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioito authored Oct 11, 2024
1 parent 941c49e commit b1d0dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compute/models/storages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b1d0dc4

Please sign in to comment.