Skip to content

Commit

Permalink
Merge pull request #73 from crayon/dev/cloud-init
Browse files Browse the repository at this point in the history
Bugfix - custom_data defined as block
  • Loading branch information
janegilring authored Apr 4, 2022
2 parents 1027d39 + fb15ce9 commit b5fe0e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions vm_linux.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ resource "azurerm_linux_virtual_machine" "machine" {
}
}

dynamic "custom_data" {
for_each = var.custom_data != null ? ["true"] : []
content {
custom_data = var.custom_data
}
}
custom_data = var.custom_data

dynamic "plan" {
for_each = var.plan != null ? ["plan"] : []
Expand Down
7 changes: 1 addition & 6 deletions vm_windows.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ resource "azurerm_windows_virtual_machine" "machine" {
}
}

dynamic "custom_data" {
for_each = var.custom_data != null ? ["true"] : []
content {
custom_data = var.custom_data
}
}
custom_data = var.custom_data

dynamic "plan" {
for_each = var.plan != null ? ["plan"] : []
Expand Down

0 comments on commit b5fe0e1

Please sign in to comment.