Merge pull request #458 from GoogleCloudPlatform/457-glb-fix-default-svc
[#457] Fix url map default service selection
This commit is contained in:
commit
cbe0f65bf1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue