mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
避免default secgroup不能重设
This commit is contained in:
@@ -802,7 +802,7 @@ func (self *SGuest) AllowPerformRevokeSecgroup(ctx context.Context, userCred mcc
|
||||
func (self *SGuest) saveDefaultSecgroupId(userCred mcclient.TokenCredential, secGrpId string) error {
|
||||
if secGrpId != self.SecgrpId {
|
||||
diff, err := db.Update(self, func() error {
|
||||
self.SecgrpId = "default"
|
||||
self.SecgrpId = secGrpId
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user