fix(region): google security group fix

This commit is contained in:
ioito
2021-12-24 17:55:53 +08:00
parent c1824f028e
commit 38a0d07444
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func (self *SGoogleRegionDriver) GetSecurityGroupRuleMaxPriority() int {
}
func (self *SGoogleRegionDriver) GetSecurityGroupRuleMinPriority() int {
return 65535
return 65534
}
func (self *SGoogleRegionDriver) GetProvider() string {
+3
View File
@@ -244,6 +244,9 @@ func (self *SSecurityGroup) GetRules() ([]cloudprovider.SecurityRule, error) {
}
rules := []cloudprovider.SecurityRule{}
for _, firewall := range firewalls {
if firewall.Priority == 65535 { // skip 65535 rule, because it not work
continue
}
_rules, err := firewall.toRules()
if err != nil {
return nil, err