DesktopRecomposeSpec does not have a Settings attribute (#464)

Similar adjustment as in #452 to another instance.
This commit is contained in:
Rob Nelson
2021-06-21 04:02:04 -04:00
committed by GitHub
parent 1dd718eb3a
commit 3077daaeb5

View File

@@ -7090,7 +7090,7 @@ function Start-HVPool {
$updates = @()
$updates += Get-MapEntry -key 'automatedDesktopData.virtualCenterProvisioningSettings.virtualCenterProvisioningData.parentVm' -value $spec.ParentVM
$updates += Get-MapEntry -key 'automatedDesktopData.virtualCenterProvisioningSettings.virtualCenterProvisioningData.snapshot' -value $spec.Snapshot
if ($startTime) { $spec.Settings.startTime = $startTime }
if ($startTime) { $spec.startTime = $startTime }
if (!$confirmFlag -OR $pscmdlet.ShouldProcess($poolList.$item)) {
$desktop_helper.Desktop_Update($services,$item,$updates)
}