#619: A module is not found if it is not in the first existing path in 
modulepath
---------------------+------------------------------------------------------
 Reporter:  luke     |        Owner:  luke      
     Type:  defect   |       Status:  closed    
 Priority:  high     |    Milestone:            
Component:  library  |      Version:  0.22.4    
 Severity:  major    |   Resolution:  worksforme
 Keywords:           |        Stage:  Accepted  
    Patch:  None     |   Complexity:  Easy      
---------------------+------------------------------------------------------
Comment (by btm):

 ''Or are you talking about a situation where both DIR1 and DIR2 have a foo
 subdir ? Not sure what should happen in that case; in my mind you have two
 different modules with the same name then.''

 It appears to load whichever module is found first, even if the module
 directory is incomplete.
 {{{
 [EMAIL PROTECTED]:~/tmp$ find .
 .
 ./mod1
 ./mod1/modtest
 ./mod2
 ./mod2/modtest
 ./mod2/modtest/manifests
 ./mod2/modtest/manifests/init.pp
 ./test.pp
 }}}
 {{{
 [EMAIL PROTECTED]:~/tmp$ puppet --modulepath
 /home/bryanm/tmp/mod1:/home/bryanm/tmp/mod2 test.pp
 Could not parse for environment development: No file(s) found for import
 of 'modtest' at /home/bryanm/tmp/test.pp:5
 }}}
 {{{
 [EMAIL PROTECTED]:~/tmp$ puppet --modulepath
 /home/bryanm/tmp/mod2:/home/bryanm/tmp/mod1 test.pp
 notice: //modtest/Exec[/bin/echo testing]/returns: executed successfully
 }}}

-- 
Ticket URL: <http://reductivelabs.com/trac/puppet/ticket/619#comment:4>
puppet <http://reductivelabs.com>
Puppet - Portable System Automation
--~--~---------~--~----~------------~-------~--~----~
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