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