Merge pull request #5031 from ioito/automated-cherry-pick-of-#5029-upstream-release-3.1

Automated cherry pick of #5029: fix: 修复gcp安全组同步问题
This commit is contained in:
yunion-ci-robot
2020-02-06 17:51:52 +08:00
committed by GitHub
+1 -1
View File
@@ -71,7 +71,7 @@ func (f FirewallSet) Swap(i, j int) {
func (f FirewallSet) Less(i, j int) bool {
if f[i].Priority != f[j].Priority {
return f[i].Priority > f[j].Priority
return f[i].Priority < f[j].Priority
}
return len(f[i].Allowed) < len(f[j].Allowed)
}