Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
Co-authored-by: Awais Malik <[email protected]>
  • Loading branch information
imrannayer and g-awmalik authored Feb 22, 2024
1 parent f4e90aa commit eeba3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ resource "google_netapp_volume" "storage_volumes" {
deletion_policy = lookup(each.value, "deletion_policy", null)

dynamic "snapshot_policy" {
for_each = lookup(each.value, "snapshot_policy", null) == null ? [] : ["volume_snapshot_policy"]
for_each = each.value.snapshot_policy != null ? ["volume_snapshot_policy"] : []
content {
enabled = lookup(each.value.snapshot_policy, "enabled", false)
dynamic "hourly_schedule" {
Expand Down

0 comments on commit eeba3e9

Please sign in to comment.