fixing if and AnyTypes
This commit is contained in:
parent
725a735c0d
commit
b5ca146643
|
@ -432,8 +432,8 @@ func resourceVSphereVirtualMachineRead(d *schema.ResourceData, meta interface{})
|
||||||
d.Set("memory", mvm.Summary.Config.MemorySizeMB)
|
d.Set("memory", mvm.Summary.Config.MemorySizeMB)
|
||||||
d.Set("cpu", mvm.Summary.Config.NumCpu)
|
d.Set("cpu", mvm.Summary.Config.NumCpu)
|
||||||
|
|
||||||
if mvm.Config && len(mvm.Config.ExtraConfig) > 0 {
|
if len(mvm.Config.ExtraConfig) > 0 {
|
||||||
custom_configs := make(map[string]string)
|
custom_configs := make(map[string]types.AnyType)
|
||||||
for _, v := range mvm.Config.ExtraConfig {
|
for _, v := range mvm.Config.ExtraConfig {
|
||||||
value := v.GetOptionValue()
|
value := v.GetOptionValue()
|
||||||
custom_configs[value.Key] = value.Value
|
custom_configs[value.Key] = value.Value
|
||||||
|
|
Loading…
Reference in New Issue