mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user