mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-09 16:07:36 +08:00
fix(vpcagent): prevent the security group deletion rule from taking effect (#19756)
This commit is contained in:
@@ -236,5 +236,12 @@ func ModelSetApplyUpdates(aSet, bSet IModelSet) *ModelSetUpdateResult {
|
||||
r.Changed = true
|
||||
}
|
||||
}
|
||||
for _, kRv := range aSetRv.MapKeys() {
|
||||
bMRv := bSetRv.MapIndex(kRv)
|
||||
if !bMRv.IsValid() { // alread deleted
|
||||
aSetRv.SetMapIndex(kRv, reflect.Value{})
|
||||
r.Changed = true
|
||||
}
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user