fix(region): sync kvm secgroup status (#21016)

This commit is contained in:
屈轩
2024-08-14 11:37:21 +08:00
committed by GitHub
parent b46783f94f
commit 1d1bdc2c96
+3
View File
@@ -584,6 +584,9 @@ func totalSecurityGroupCount(scope rbacscope.TRbacScope, ownerId mcclient.IIdent
}
func (self *SSecurityGroup) PerformSyncstatus(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input *api.SecurityGroupSyncstatusInput) (jsonutils.JSONObject, error) {
if !self.IsManaged() {
return nil, self.SetStatus(ctx, userCred, api.SECGROUP_STATUS_READY, "")
}
return nil, self.StartSecurityGroupSyncTask(ctx, userCred, "")
}