Skip to content

Commit

Permalink
Remove depends_on
Browse files Browse the repository at this point in the history
  • Loading branch information
Johns293 authored and Johns293 committed Nov 28, 2023
1 parent 7a83911 commit 98373c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions custom_script.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ resource "azurerm_virtual_machine_scale_set_extension" "custom_script" {
count = (var.install_splunk_uf == true || var.install_nessus_agent == true || var.additional_script_path != null) && var.virtual_machine_type == "vmss" ? 1 : 0


depends_on = [azurerm_virtual_machine_scale_set_extension.endpoint_protection]
lifecycle {
prevent_destroy = true
}
name = var.custom_script_extension_name
virtual_machine_scale_set_id = var.virtual_machine_scale_set_id
publisher = lower(var.os_type) == "linux" ? "Microsoft.Azure.Extensions" : lower(var.os_type) == "windows" ? "Microsoft.Compute" : null
Expand Down

0 comments on commit 98373c9

Please sign in to comment.