Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3429

Weekly tasks always notify 'trigger changed'

    XMLWordPrintable

Details

    • 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              johnburns320 John Burns
              Eric Thompson Eric Thompson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support