mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-30 17:13:08 +08:00
fix(region): skip sync cloudpods kvm secgroup (#25376)
This commit is contained in:
@@ -831,6 +831,10 @@ func (manager *SSecurityGroupManager) DelaySync(ctx context.Context, userCred mc
|
||||
return errors.Wrapf(err, "GetKvmGuests")
|
||||
}
|
||||
for _, guest := range guests {
|
||||
// skip sync if guest has external id(cloudpods guest)
|
||||
if len(guest.ExternalId) > 0 {
|
||||
continue
|
||||
}
|
||||
guest.StartSyncTask(ctx, userCred, true, "")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user