Skip to content

Commit

Permalink
Fix issue when boot_diagnostics is set to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy MARMOL committed Oct 10, 2017
1 parent 67a4dd3 commit 4cc1a4a
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 @@ -63,7 +63,7 @@ resource "azurerm_virtual_machine" "vm-linux" {
}
boot_diagnostics {
enabled = "${var.boot_diagnostics}"
storage_uri = "${azurerm_storage_account.vm-sa.primary_blob_endpoint}"
storage_uri = "${var.boot_diagnostics == "true" ? join(",", azurerm_storage_account.vm-sa.*.primary_blob_endpoint) : "" }"
}
}

Expand Down

0 comments on commit 4cc1a4a

Please sign in to comment.