Merge pull request #18881 from ioito/automated-cherry-pick-of-#18880-upstream-release-3.11

Automated cherry pick of #18880: fix(region): avoid cloudmon no cloudprovider sync
This commit is contained in:
Zexi Li
2023-12-05 12:06:58 +08:00
committed by GitHub
+3 -1
View File
@@ -86,11 +86,13 @@ func (self *SBaseResources) init(ctx context.Context) error {
"order_by.1": "imported_at",
"order": "asc",
"pending_delete": "all",
"filter.0": "external_id.isnotempty()",
}
if self.manager.GetKeyword() == compute.Hosts.GetKeyword() { // private and vmware
query["cloud_env"] = "private_or_onpremise"
}
if self.manager.GetKeyword() != compute.Cloudproviders.GetKeyword() {
query["filter.0"] = "external_id.isnotempty()"
}
offset := 0
for {
query["offset"] = offset