Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Done
-
PUP 3.4.3
-
Windows Server 2008 R2
-
1
-
Bug Fix
Description
The Windows scheduled task (scheduled_task) provider will generate notices that weekly scheduled task triggers are changed even when no change is necessary. The messages in question look like the following:
notice: /Stage[main]/Schedtask/Scheduled_task[weekly_task]/trigger: trigger changed '{'every' => '1', 'on' => ['mon', 'tues', 'wed', 'thurs', 'fri'], 'schedule' => 'weekly', 'start_date' => '2014-10-9', 'start_time' => '07:30'}' to '[{'day_of_week' => ['mon', 'tues', 'wed', 'thurs', 'fri'], 'schedule' => 'weekly', 'start_time' => '07:30'}]'
|
The resource associated with the task looks like this:
scheduled_task { 'Weekly Task' :
|
ensure => present,
|
command => "C:\Windows\System32\cmd.exe",
|
trigger => {
|
schedule => weekly,
|
start_time => '07:30',
|
day_of_week => [mon, tues, wed, thurs, fri],
|
},
|
}
|
The provider seems to be comparing the day_of_week parameter against the on parameter. Weekly triggers are supposed to use day_of_week according to the documentation.