mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
win_updates fix to use documented InstanceGuid property name
This commit is contained in:
parent
e20eac089f
commit
bd3172b2e8
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ Function DestroyScheduledJob {
|
||||||
$running_tasks = @($schedserv.GetRunningTasks(0) | Where-Object { $_.Name -eq $job_name })
|
$running_tasks = @($schedserv.GetRunningTasks(0) | Where-Object { $_.Name -eq $job_name })
|
||||||
|
|
||||||
Foreach($task_to_stop in $running_tasks) {
|
Foreach($task_to_stop in $running_tasks) {
|
||||||
Write-DebugLog "Stopping running task $($task_to_stop.InstanceId)..."
|
Write-DebugLog "Stopping running task $($task_to_stop.InstanceGuid)..."
|
||||||
$task_to_stop.Stop()
|
$task_to_stop.Stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue