diff --git a/pkg/vmprovider/providers/vsphere/session/session_util.go b/pkg/vmprovider/providers/vsphere/session/session_util.go index c1703b053..5821dde16 100644 --- a/pkg/vmprovider/providers/vsphere/session/session_util.go +++ b/pkg/vmprovider/providers/vsphere/session/session_util.go @@ -49,11 +49,8 @@ func MergeExtraConfig(extraConfig []vimTypes.BaseOptionValue, newMap map[string] func GetMergedvAppConfigSpec(inProps map[string]string, vmProps []vimTypes.VAppPropertyInfo) *vimTypes.VmConfigSpec { outProps := make([]vimTypes.VAppPropertySpec, 0) + // Update any vApp properties if they have been specified in VM metadata. for _, vmProp := range vmProps { - if vmProp.UserConfigurable == nil || !*vmProp.UserConfigurable { - continue - } - inPropValue, found := inProps[vmProp.Id] if !found || vmProp.Value == inPropValue { continue