HomePhorge

(#13009) Compare scheduled task commands using backslashes
c6af946e113cUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#13009) Compare scheduled task commands using backslashes

Previously, if the command for a scheduled task was specified using
forward slashes, puppet would always think the resource was out-of-sync.
This issue is that Windows does not preserve forward slashes, so the
*current* value always contains backslashes.

This commit munges forward slashes in the command to backslashes. It also
uses File.expand_path, because otherwise commands like the following in
the puppet language would be considered different:

command => 'c:\\windows\\system32\\cmd.exe'
command => 'c:\windows\system32\cmd.exe'

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU401aa7fac2d3: Merge remote-tracking branch 'origin/2.7rc' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPUc6af946e113c: (#13009) Compare scheduled task commands using backslashes (authored by Josh Cooper <josh@puppetlabs.com>).May 31 2012, 6:41 AM