From b5ca1466433c6a3eed350f6d6f9e163ddcb7b032 Mon Sep 17 00:00:00 2001 From: Chris Love Date: Sun, 8 Nov 2015 18:21:17 -0700 Subject: [PATCH] fixing if and AnyTypes --- builtin/providers/vsphere/resource_vsphere_virtual_machine.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/vsphere/resource_vsphere_virtual_machine.go b/builtin/providers/vsphere/resource_vsphere_virtual_machine.go index 07d84367a..cf636e79d 100644 --- a/builtin/providers/vsphere/resource_vsphere_virtual_machine.go +++ b/builtin/providers/vsphere/resource_vsphere_virtual_machine.go @@ -432,8 +432,8 @@ func resourceVSphereVirtualMachineRead(d *schema.ResourceData, meta interface{}) d.Set("memory", mvm.Summary.Config.MemorySizeMB) d.Set("cpu", mvm.Summary.Config.NumCpu) - if mvm.Config && len(mvm.Config.ExtraConfig) > 0 { - custom_configs := make(map[string]string) + if len(mvm.Config.ExtraConfig) > 0 { + custom_configs := make(map[string]types.AnyType) for _, v := range mvm.Config.ExtraConfig { value := v.GetOptionValue() custom_configs[value.Key] = value.Value