fix(region): avoid cloudmon no cloudprovider sync

This commit is contained in:
ioito
2023-12-05 10:05:50 +08:00
parent b20ec7bdb3
commit 19378997ee
+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