Merge pull request #11762 from rainzm/automated-cherry-pick-of-#11761-upstream-release-3.7

Automated cherry pick of #11761: fix: avoid double counting when compute networks nic count
This commit is contained in:
Zexi Li
2021-07-31 11:38:32 +08:00
committed by GitHub
+1
View File
@@ -187,6 +187,7 @@ func (nm *SNetworkManager) jointNetworkCount(manager db.IModelManager, netIds []
q = filter(q)
}
q = q.AppendField(sqlchemy.COUNT("count"))
q = q.GroupBy("network_id")
return q
}