Skip to content

Commit

Permalink
fix condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelamattes committed May 10, 2022
1 parent 852b163 commit ff3168e
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 @@ -148,7 +148,7 @@ resource "azurerm_managed_disk" "managed_disk" {
public_network_access_enabled = local.managed_disk[each.key].public_network_access_enabled

dynamic "encryption_settings" {
for_each = local.managed_disk[each.key].encryption_settings.enabled != true ? [1] : []
for_each = local.managed_disk[each.key].encryption_settings.enabled != false ? [1] : []

content {
enabled = local.managed_disk[each.key].encryption_settings.enabled
Expand Down

0 comments on commit ff3168e

Please sign in to comment.