Skip to content

Commit f4cf382

Browse files
authored
Merge pull request #144 from NetApp/update_terraform_fsxn
Handle the case where disk_configuration doesn't include iops.
2 parents 141d4b6 + 1381b73 commit f4cf382

File tree

1 file changed

+1
-1
lines changed
  • Terraform/deploy-fsx-ontap/module

1 file changed

+1
-1
lines changed

Terraform/deploy-fsx-ontap/module/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ resource "aws_fsx_ontap_file_system" "terraform-fsxn" {
3232
dynamic "disk_iops_configuration" {
3333
for_each = var.disk_iops_configuration != null ? [var.disk_iops_configuration] : []
3434
content {
35-
iops = disk_iops_configuration.value["iops"]
35+
iops = (disk_iops_configuration.value["iops"] != null ? disk_iops_configuration.value["iops"] : 0)
3636
mode = disk_iops_configuration.value["mode"]
3737
}
3838
}

0 commit comments

Comments
 (0)