From d06028722b86ddd121520f7259b5d20f75968842 Mon Sep 17 00:00:00 2001 From: Morgante Pell Date: Tue, 19 Nov 2019 12:42:30 +0000 Subject: [PATCH] Fix bug in outputs when removing buckets --- outputs.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/outputs.tf b/outputs.tf index e548fbaf..e002d6f3 100644 --- a/outputs.tf +++ b/outputs.tf @@ -36,12 +36,12 @@ output "buckets" { output "names" { description = "Bucket names." - value = zipmap(var.names, google_storage_bucket.buckets[*].name) + value = zipmap(var.names, slice(google_storage_bucket.buckets[*].name, 0, length(var.names)) } output "urls" { description = "Bucket URLs." - value = zipmap(var.names, google_storage_bucket.buckets[*].url) + value = zipmap(var.names, slice(google_storage_bucket.buckets[*].url, 0, length(var.names)) } output "names_list" {