Issue #18078 has been updated by Charlie Sharpsteen.

Assignee set to Charlie Sharpsteen

----------------------------------------
Bug #18078: Spurious 'trigger changed' messages generated by scheduled task 
provider
https://projects.puppetlabs.com/issues/18078#change-87342

* Author: Ken Johnson
* Status: Accepted
* Priority: Normal
* Assignee: Charlie Sharpsteen
* 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to