File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -564,8 +564,8 @@ resource "azurerm_virtual_machine_extension" "ext" {
564564 type = each. value . type
565565 type_handler_version = each. value . type_handler_version
566566 auto_upgrade_minor_version = each. value . auto_upgrade_minor_version
567- settings = jsonencode (each. value . settings )
568- protected_settings = jsonencode (each. value . protected_settings )
567+ settings = length ( try (each . value . settings , {})) > 0 ? jsonencode (each. value . settings ) : null
568+ protected_settings = length ( try (each . value . protected_settings , {})) > 0 ? jsonencode (each. value . protected_settings ) : null
569569
570570 provision_after_extensions = each. value . provision_after_extensions
571571 failure_suppression_enabled = each. value . failure_suppression_enabled
You can’t perform that action at this time.
0 commit comments