Merge pull request #458 from GoogleCloudPlatform/457-glb-fix-default-svc

[#457] Fix url map default service selection
This commit is contained in:
Julio Castillo 2022-01-25 12:17:19 +01:00 committed by GitHub
commit cbe0f65bf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ locals {
&& try(var.url_map_config.default_route_action.weighted_backend_services, null) == null
&& try(var.url_map_config.default_url_redirect, null) == null
? try(
google_compute_backend_bucket.bucket.0.id,
google_compute_backend_service.group.0.id,
google_compute_backend_bucket.bucket[keys(google_compute_backend_bucket.bucket)[0]].id,
google_compute_backend_service.group[keys(google_compute_backend_service.group)[0]].id,
null
)
: null