diff --git a/builtin/providers/vsphere/resource_vsphere_virtual_machine.go b/builtin/providers/vsphere/resource_vsphere_virtual_machine.go index 4ea2234f8..84e1cef8c 100644 --- a/builtin/providers/vsphere/resource_vsphere_virtual_machine.go +++ b/builtin/providers/vsphere/resource_vsphere_virtual_machine.go @@ -236,8 +236,8 @@ func resourceVSphereVirtualMachine() *schema.Resource { ForceNew: true, }, - "type" : &schema.Schema{ - Type: schema.TypeString, + "type": &schema.Schema{ + Type: schema.TypeString, Optional: true, ForceNew: true, Default: "eager_zeroed", @@ -404,7 +404,7 @@ func resourceVSphereVirtualMachineCreate(d *schema.ResourceData, meta interface{ } if v, ok := disk["type"].(string); ok && v != "" { disks[i].initType = v - } + } } vm.hardDisks = disks log.Printf("[DEBUG] disk init: %v", disks)