Skip to content

Commit

Permalink
fix(availability-zone): set variable to strign
Browse files Browse the repository at this point in the history
Signed-off-by: Roberth Strand <[email protected]>
  • Loading branch information
roberthstrand committed Jun 7, 2022
1 parent 55b0c97 commit 36af09f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data_disk.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "azurerm_managed_disk" "data_disk" {
storage_account_type = each.value.storage_account_type
create_option = title(each.value.create_option)
disk_size_gb = each.value.disk_size_gb
zone = [tostring(var.availability_zone)]
zone = var.availability_zone

# If create_option is anything other than Empty,
# we need to define the supporting attribute.
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ variable "data_disks" {
}
variable "availability_zone" {
description = "The availability zone the resources should be deployed to."
type = number
type = string
default = null
}
variable "availability_set_id" {
Expand Down

0 comments on commit 36af09f

Please sign in to comment.