mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
Merge pull request #12960 from ioito/automated-cherry-pick-of-#12958-upstream-release-3.7
Automated cherry pick of #12958: fix(region): qcloud secgroup rule sync
This commit is contained in:
@@ -369,7 +369,7 @@ func (self *SRegion) syncSecgroupRules(secgroupId string, rules []cloudprovider.
|
||||
params[fmt.Sprintf("SecurityGroupPolicySet.Ingress.%d.PolicyIndex", idx)] = fmt.Sprintf("%d", rule.PolicyIndex)
|
||||
}
|
||||
}
|
||||
if len(ruleSet.Egress)+len(ruleSet.Ingress) > 0 {
|
||||
if len(params) > 1 {
|
||||
_, err = self.vpcRequest("DeleteSecurityGroupPolicies", params)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "DeleteSecurityGroupPolicies")
|
||||
|
||||
Reference in New Issue
Block a user