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 @@ -115,7 +115,7 @@ resource "vsphere_virtual_machine" "Linux" {
115115 thin_provisioned = data. vsphere_virtual_machine . template . disks [template_disks . key ]. thin_provisioned
116116 eagerly_scrub = data. vsphere_virtual_machine . template . disks [template_disks . key ]. eagerly_scrub
117117 datastore_id = var. disk_datastore != " " ? data. vsphere_datastore . disk_datastore [0 ]. id : null
118- storage_policy_id = length (var. disk_storage_policy_id ) > 0 != null ? var. disk_storage_policy_id [template_disks . key ] : null
118+ storage_policy_id = length (var. disk_storage_policy_id ) > 0 ? var. disk_storage_policy_id [template_disks . key ] : null
119119 }
120120 }
121121 // Additional disks defined by Terraform config
@@ -231,7 +231,7 @@ resource "vsphere_virtual_machine" "Windows" {
231231 thin_provisioned = data. vsphere_virtual_machine . template . disks [template_disks . key ]. thin_provisioned
232232 eagerly_scrub = data. vsphere_virtual_machine . template . disks [template_disks . key ]. eagerly_scrub
233233 datastore_id = var. disk_datastore != " " ? data. vsphere_datastore . disk_datastore [0 ]. id : null
234- storage_policy_id = length (var. disk_storage_policy_id ) > 0 != null ? var. disk_storage_policy_id [template_disks . key ] : null
234+ storage_policy_id = length (var. disk_storage_policy_id ) > 0 ? var. disk_storage_policy_id [template_disks . key ] : null
235235 }
236236 }
237237
You can’t perform that action at this time.
0 commit comments