Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6920

The scheduled_task provider performs incorrect matching on file names

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: scheduled_task 0.2
    • Fix Version/s: scheduled_task 0.3
    • Component/s: None
    • Template:
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows 2018-05-23

      Description

      The schedule task provider seems to not be applying changes to the resource after it has been initially set. For instance, if I perform a new puppet run after changing the arguments, the change is not applied.

      I believe the above is covered in PUP-1498

      Also, possibly related: Puppet tries to change the command name of the resource every puppet run to match the same casing of the executable. Unfortunately it seems this change never persists, and the message informing the user of the change, occurs every puppet run.

      class wintest {
        scheduled_task { "foo":
          ensure => present,
          command => 'c:\program files\testing\Random.Executable.exe',
          trigger => {
            schedule => 'daily',
            start_time => '10:30',
          }
        }
      }
      

      Results in:

      notice: /Stage[main]/Wintest/Scheduled_task[foo]/command: command changed 'c:\program files\testing\Random.Executable.exe' to 'c:\program files\testing\Random.Executable.EXE
      

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                erick Erick Banks
                Reporter:
                jay Jay Wallace
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: