Issue #13055 has been updated by Josh Cooper.

Status changed from Accepted to Needs More Information
Assignee changed from Jeff McCune to Nigel Kersten

So I'm having trouble reproducing this. I downloaded the motd module (tar.gz 
and all) and extracted it into my c:\users\albert\modules directory. I appended 
the line `include win_desktop_shortcut` to the module's init.pp. Then I ran:

<pre>
C:\>puppet apply 
   --modulepath=c:\Users\albert\modules
   --factpath=c:\Users\albert\modules\puppetlabs-win_desktop_shortcut-0.0.3\lib 
   
c:\Users\albert\modules\puppetlabs-win_desktop_shortcut-0.0.3\manifests\init.pp
notice: 
/Stage[main]/Win_desktop_shortcut/File[C:\Users\Public\Desktop\PuppetLabs.URL]/ensure:
 created
</pre>

I'm using backslashes for both the modulepath and factpath and it works as 
expected.
----------------------------------------
Bug #13055: On Windows, the autoloader gets confused by backslashes in a 
modulepath
https://projects.puppetlabs.com/issues/13055#change-58564

Author: Nigel Kersten
Status: Needs More Information
Priority: Normal
Assignee: Nigel Kersten
Category: windows
Target version: 
Affected Puppet version: 
Keywords: windows
Branch: 


(Feel free to bounce back to me if I haven't given enough data)

<pre>
puppet apply --modulepath="Z:\path\to\my\modules" "Z:\path\to\my\site.pp"
</pre>

When you use backslashes, puppet tries to parse the modules twice, and gets all 
confused with duplicate resource definitions.

Switching the modulepath to `Z:/path/to/my/modules` worked as a workaround.


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

Reply via email to