Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix instances where no items found in region by continuing to next region #21341

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/13027.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepAlloydbBackup(_ string) error {
resourceList, ok := res["backups"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepApigeeAddonsConfig(_ string) error {
resourceList, ok := res["addonsConfigs"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepApigeeAppGroup(_ string) error {
resourceList, ok := res["appGroups"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepApigeeDeveloper(_ string) error {
resourceList, ok := res["developers"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepApigeeEnvgroup(_ string) error {
resourceList, ok := res["envgroups"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepApigeeEnvironment(_ string) error {
resourceList, ok := res["environments"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepApigeeInstance(_ string) error {
resourceList, ok := res["instances"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepApigeeOrganization(_ string) error {
resourceList, ok := res["organizations"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepAppEngineDomainMapping(_ string) error {
resourceList, ok := res["domainMappings"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func testSweepApphubApplication(_ string) error {
resourceList, ok := res["applications"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepApphubServiceProjectAttachment(_ string) error {
resourceList, ok := res["serviceProjectAttachments"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func testSweepArtifactRegistryRepository(_ string) error {
resourceList, ok := res["repositories"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepBeyondcorpAppConnection(_ string) error {
resourceList, ok := res["appConnections"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepBeyondcorpAppConnector(_ string) error {
resourceList, ok := res["appConnectors"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepBeyondcorpAppGateway(_ string) error {
resourceList, ok := res["appGateways"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepBeyondcorpSecurityGateway(_ string) error {
resourceList, ok := res["securityGateways"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func testSweepBiglakeCatalog(_ string) error {
resourceList, ok := res["catalogs"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func testSweepBigqueryAnalyticsHubDataExchange(_ string) error {
resourceList, ok := res["dataExchanges"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepBigqueryAnalyticsHubListingSubscription(_ string) error {
resourceList, ok := res["listingSubscriptions"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func testSweepBigqueryConnectionConnection(_ string) error {
resourceList, ok := res["connections"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepBigqueryDatapolicyDataPolicy(_ string) error {
resourceList, ok := res["dataPolicies"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func testSweepBigqueryReservationCapacityCommitment(_ string) error {
resourceList, ok := res["capacityCommitments"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepBillingBudget(_ string) error {
resourceList, ok := res["budgets"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepBlockchainNodeEngineBlockchainNodes(_ string) error {
resourceList, ok := res["blockchainNodes"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepCertificateManagerCertificateIssuanceConfig(_ string) error {
resourceList, ok := res["certificateIssuanceConfigs"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepCertificateManagerCertificateMap(_ string) error {
resourceList, ok := res["certificateMaps"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func testSweepCertificateManagerCertificate(_ string) error {
resourceList, ok := res["certificates"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func testSweepCertificateManagerDnsAuthorization(_ string) error {
resourceList, ok := res["dnsAuthorizations"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func testSweepCertificateManagerTrustConfig(_ string) error {
resourceList, ok := res["trustConfigs"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepCloudAssetProjectFeed(_ string) error {
resourceList, ok := res["feeds"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepCloudBuildBitbucketServerConfig(_ string) error {
resourceList, ok := res["bitbucketServerConfigs"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func testSweepCloudBuildTrigger(_ string) error {
resourceList, ok := res["triggers"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func testSweepCloudbuildv2Connection(_ string) error {
resourceList, ok := res["connections"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepClouddeployCustomTargetType(_ string) error {
resourceList, ok := res["customTargetTypes"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func testSweepCloudfunctions2function(_ string) error {
resourceList, ok := res["functions"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepCloudRunDomainMapping(_ string) error {
resourceList, ok := res["domainMappings"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func testSweepCloudRunService(_ string) error {
resourceList, ok := res["services"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepCloudSchedulerJob(_ string) error {
resourceList, ok := res["jobs"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepCloudTasksQueue(_ string) error {
resourceList, ok := res["queues"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepColabNotebookExecution(_ string) error {
resourceList, ok := res["notebookExecutions"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
2 changes: 1 addition & 1 deletion google/services/colab/resource_colab_runtime_sweeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepColabRuntime(_ string) error {
resourceList, ok := res["runtimes"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testSweepColabRuntimeTemplate(_ string) error {
resourceList, ok := res["runtimeTemplates"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
2 changes: 1 addition & 1 deletion google/services/colab/resource_colab_schedule_sweeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func testSweepColabSchedule(_ string) error {
resourceList, ok := res["schedules"]
if !ok {
log.Printf("[INFO][SWEEPER_LOG] Nothing found in response.")
return nil
continue
}
rl := resourceList.([]interface{})

Expand Down
Loading