From c25eb9b4b83d870526eeee59b266bbe613ec2dbf Mon Sep 17 00:00:00 2001 From: Paul Stack Date: Wed, 29 Jun 2016 19:37:04 +0100 Subject: [PATCH] provider/vsphere: Make `vsphere_virtual_machine` `product_key` optional (#7410) Fixes #6690 Luckily, the code was already checking to see if the product_key was specified --- builtin/providers/vsphere/resource_vsphere_virtual_machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/vsphere/resource_vsphere_virtual_machine.go b/builtin/providers/vsphere/resource_vsphere_virtual_machine.go index 2955a0ea3a..520c93456e 100644 --- a/builtin/providers/vsphere/resource_vsphere_virtual_machine.go +++ b/builtin/providers/vsphere/resource_vsphere_virtual_machine.go @@ -232,7 +232,7 @@ func resourceVSphereVirtualMachine() *schema.Resource { Schema: map[string]*schema.Schema{ "product_key": &schema.Schema{ Type: schema.TypeString, - Required: true, + Optional: true, ForceNew: true, },