Issue #3668 has been updated by Markus Roberts. Status changed from Available In Testing Branch to Closed
Applied to master in commit:"d61a69a0e5a87a95846a4d39115eac80e4984cac" ---------------------------------------- Bug #3668: Auto-import of class or definition is broken in testing http://projects.puppetlabs.com/issues/3668 Author: Brice Figureau Status: Closed Priority: Urgent Assigned to: Markus Roberts Category: compiler Target version: Rowlf Affected version: testing Keywords: Branch: luke/tickets/master/3668-broken_class_autoloading Take the following manifest: <pre> node localhost { include myclass } </pre> Then have in your modulepath this module (modules/manifests/myclass/init.pp): <pre> class myclass { notify { "myclass" : } } </pre> Then issueing: <pre> puppet main --debug --modulepath /path/to/modules --trace testimport.pp </pre> produces: <pre> ./lib/puppet/util/errors.rb:63:in `fail' ./lib/puppet/parser/functions/include.rb:24:in `function_include' ./lib/puppet/parser/ast/function.rb:42:in `send' ./lib/puppet/parser/ast/function.rb:42:in `evaluate' ./lib/puppet/parser/ast.rb:72:in `safeevaluate' ./lib/puppet/resource/type.rb:39:in `evaluate_code' ./lib/puppet/parser/resource.rb:75:in `evaluate' ./lib/puppet/parser/compiler.rb:208:in `evaluate_ast_node' ./lib/puppet/parser/compiler.rb:84:in `compile' ./lib/puppet/parser/compiler.rb:18:in `compile' ./lib/puppet/indirector/catalog/compiler.rb:79:in `compile' ./lib/puppet/util.rb:183:in `benchmark' ./lib/puppet/indirector/catalog/compiler.rb:77:in `compile' ./lib/puppet/indirector/catalog/compiler.rb:34:in `find' ./lib/puppet/indirector/indirection.rb:195:in `find' ./lib/puppet/indirector.rb:51:in `find' ./lib/puppet/application/main.rb:119:in `main' ./lib/puppet/application.rb:306:in `send' ./lib/puppet/application.rb:306:in `run_command' ./lib/puppet/application.rb:297:in `run' ./lib/puppet/application.rb:395:in `exit_on_fail' ./lib/puppet/application.rb:297:in `run' sbin/puppet:15 ./lib/puppet/parser/compiler.rb:21:in `compile' ./lib/puppet/indirector/catalog/compiler.rb:79:in `compile' ./lib/puppet/util.rb:183:in `benchmark' ./lib/puppet/indirector/catalog/compiler.rb:77:in `compile' ./lib/puppet/indirector/catalog/compiler.rb:34:in `find' ./lib/puppet/indirector/indirection.rb:195:in `find' ./lib/puppet/indirector.rb:51:in `find' ./lib/puppet/application/main.rb:119:in `main' ./lib/puppet/application.rb:306:in `send' ./lib/puppet/application.rb:306:in `run_command' ./lib/puppet/application.rb:297:in `run' ./lib/puppet/application.rb:395:in `exit_on_fail' ./lib/puppet/application.rb:297:in `run' sbin/puppet:15 Could not find class myclass at /tmp/testimport.pp:4 on node macbook.local </pre> Adding an @import "myclass"@ fixes the issue, so that means this is an auto-loading issue. -- 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.
