Skip to content

Commit

Permalink
Merge pull request #256 from bozho/issue-255-sch-task-type-mismatch
Browse files Browse the repository at this point in the history
[#255] Fixed type mismatch for MultipleInstances
  • Loading branch information
PlagueHO committed Sep 6, 2019
2 parents fd2548a + 58144bb commit 0d65d74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
[Issue #230](https://github.com/PowerShell/ComputerManagementDsc/issues/230)
- Changed `Get-ScheduledTask` calls to `ScheduledTasks\Get-ScheduledTask` to
avoid name clash with `Carbon` module. Fixes [Issue #248](https://github.com/PowerShell/ComputerManagementDsc/issues/248)
- Cast `MultipleInstances` value returned by `Get-TargetResource` to `string` -
fixes [Issue #255](https://github.com/PowerShell/ComputerManagementDsc/issues/255)
- PendingReboot:
- Migrated xPendingReboot from [xPendingReboot](https://github.com/PowerShell/xPendingReboot)
and renamed to PendingReboot.
Expand Down
2 changes: 1 addition & 1 deletion DSCResources/MSFT_ScheduledTask/MSFT_ScheduledTask.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ function Get-CurrentResource
RestartOnIdle = $settings.IdleSettings.RestartOnIdle
DontStopOnIdleEnd = -not $settings.IdleSettings.StopOnIdleEnd
ExecutionTimeLimit = ConvertTo-TimeSpanStringFromScheduledTaskString -TimeSpan $settings.ExecutionTimeLimit
MultipleInstances = $settings.MultipleInstances
MultipleInstances = [System.String] $settings.MultipleInstances
Priority = $settings.Priority
RestartCount = $settings.RestartCount
RestartInterval = ConvertTo-TimeSpanStringFromScheduledTaskString -TimeSpan $settings.RestartInterval
Expand Down

0 comments on commit 0d65d74

Please sign in to comment.