Issue #11930 has been reported by Josh Cooper.
----------------------------------------
Bug #11930: Must use forward slashes when specifying a local modulepath on
Windows
https://projects.puppetlabs.com/issues/11930
Author: Josh Cooper
Status: Accepted
Priority: Normal
Assignee: Josh Cooper
Category: windows
Target version: 2.7.x
Affected Puppet version: 2.7.6
Keywords:
Branch:
If you specify `puppet apply --modulepath c:\modules` puppet will silently
ignore your modules. If you specify using forward slashes, it will work. The
problem is `Puppet::Node::Environment.validated_dirs` is using a regex to
determine if each modulepath component is an absolute path or not. It should
just use `Puppet::Util.absolute_path?`
<pre>
dir_regex = Puppet.features.microsoft_windows? ?
/^[A-Za-z]:#{File::SEPARATOR}/ : /^#{File::SEPARATOR}/
</pre>
where `File::SEPARATOR` is forward slash on both Unix and Windows, but
`File::ALT_SEPARATOR` is a backslash on Windows
--
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.