Skip to content

Commit

Permalink
Merge pull request #18880 from ioito/hotfix/qx-cloudmon-sync
Browse files Browse the repository at this point in the history
fix(region): avoid cloudmon no cloudprovider sync
  • Loading branch information
zexi committed Dec 5, 2023
2 parents 821eb41 + 0c7bf69 commit c51739e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cloudmon/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c51739e

Please sign in to comment.