Skip to content

Commit

Permalink
Fix bug in outputs when removing buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Nov 19, 2019
1 parent 2d968b5 commit d060287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit d060287

Please sign in to comment.