don't raise error on incremental destroys in cf module outputs

This commit is contained in:
Ludovico Magnocavallo 2020-08-17 12:46:04 +02:00
parent f0ba47511c
commit 849b50b95b
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,9 @@
output "bucket" {
description = "Bucket resource (only if auto-created)."
value = var.bucket_config == null ? null : google_storage_bucket.bucket.0
value = try(
var.bucket_config == null ? null : google_storage_bucket.bucket.0, null
)
}
output "bucket_name" {