Reversing 9d9ebc504b (#492)
The change made in https://github.com/vmware/PowerCLI-Example-Scripts/commit/9d9ebc504b8b31e651cf56cf3336c020735b0fa6 breaks ImagePush operations for Instant Clone pools. See the API documentation for reference. The schema for `DesktopPushImageSpec` is as follows: * DesktopPushImageSpec * Settings * StartTime Signed-off-by: Matt Frey <mfrey@vmware.com>
This commit is contained in:
@@ -7108,7 +7108,7 @@ function Start-HVPool {
|
|||||||
$spec.Settings = New-Object VMware.Hv.DesktopPushImageSettings
|
$spec.Settings = New-Object VMware.Hv.DesktopPushImageSettings
|
||||||
$spec.Settings.LogoffSetting = $logoffSetting
|
$spec.Settings.LogoffSetting = $logoffSetting
|
||||||
$spec.Settings.StopOnFirstError = $stopOnFirstError
|
$spec.Settings.StopOnFirstError = $stopOnFirstError
|
||||||
if ($startTime) { $spec.startTime = $startTime }
|
if ($startTime) { $spec.Settings.startTime = $startTime }
|
||||||
if (!$confirmFlag -OR $pscmdlet.ShouldProcess($poolList.$item)) {
|
if (!$confirmFlag -OR $pscmdlet.ShouldProcess($poolList.$item)) {
|
||||||
$desktop_helper.Desktop_SchedulePushImage($services,$item,$spec)
|
$desktop_helper.Desktop_SchedulePushImage($services,$item,$spec)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user