Skip to content

Commit

Permalink
Updated the for_each block to dynamically control extension creation.
Browse files Browse the repository at this point in the history
Signed-off-by: Melody Sofia Eroshevich <[email protected]>
  • Loading branch information
neonwhiskers committed Oct 15, 2024
1 parent cc38860 commit 0fe046d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r-extensions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resource "azurerm_virtual_machine_extension" "this" {
(local.is_windows ? local.windows_extenstion : []),
(local.is_linux ? local.linux_extensions : [])
) :
element.name => element if contains(var.extensions, element.name)
element.name => element if contains(var.extensions, element.name) && var.allow_extension_operations
}

virtual_machine_id = local.virtual_machine.id
Expand Down

0 comments on commit 0fe046d

Please sign in to comment.