Issue #18078 has been updated by Josh Cooper.

Description updated
Status changed from Unreviewed to Accepted

This is an issue in 2.7.20 also.
----------------------------------------
Bug #18078: Spurious 'trigger changed' messages generated by scheduled task 
provider
https://projects.puppetlabs.com/issues/18078#change-78651

Author: Ken Johnson
Status: Accepted
Priority: Normal
Assignee: 
Category: windows
Target version: 
Affected Puppet version: 2.7.12
Keywords: windows,scheduled_task
Branch: 


The Windows scheduled task provider will generate spurious messages during 
Puppet runs which suggest that scheduled task resources are being reapplied 
during each run even when the task is present and its associated resource has 
not been modified. The messages in question look like the following:

<code>notice: 
/Stage[main]/Schedtask/Scheduled_task[restart_some_service]/trigger: trigger 
changed '{'every' => '1', 'on' => ['sun'], 'schedule' => 'weekly', 'start_date' 
=> '2012-10-22', 'start_time' => '01:00'}' to '[{'day_of_week' => ['sun'], 
'schedule' => 'weekly', 'start_time' => '01:00'}]'</code>

The resource associated with the task looks like this:

<pre>
  scheduled_task { 'restart_some_service':
    ensure  => present,
    enabled => true,
    command => 'c:\windows\restart_some_service.bat',
    user    => 'SYSTEM',
    trigger => {
      schedule    => weekly,
      day_of_week => [sun],
      start_time  => '01:00',
    },
    require => File['restart_some_service.bat'],
  }
</pre>

This seems to be some kind of artifact of date conversion/formatting or 
something. While Puppet reports a change, examining the history tab for the 
task shows no changes aside from the initial creation of the task and 
subsequent 'real' changes which were initiated by actually modifying the 
resource. The notices will be generated regardless of whether there is a real 
change to report. 


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to