Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Fix: migrate terraform list to tolist to suport terraform v0.15 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
meabed authored May 14, 2021
1 parent 87b079c commit f1a30bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/vpc-network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ resource "google_compute_subnetwork" "vpc_subnetwork_public" {
}

dynamic "log_config" {
for_each = var.log_config == null ? [] : list(var.log_config)
for_each = var.log_config == null ? [] : tolist([var.log_config])

content {
aggregation_interval = var.log_config.aggregation_interval
Expand Down Expand Up @@ -121,7 +121,7 @@ resource "google_compute_subnetwork" "vpc_subnetwork_private" {
}

dynamic "log_config" {
for_each = var.log_config == null ? [] : list(var.log_config)
for_each = var.log_config == null ? [] : tolist([var.log_config])

content {
aggregation_interval = var.log_config.aggregation_interval
Expand Down

0 comments on commit f1a30bf

Please sign in to comment.