diff options
| author | Dan Bode <bodepd@gmail.com> | 2011-03-16 15:32:23 -0500 |
|---|---|---|
| committer | Dan Bode <bodepd@gmail.com> | 2011-03-16 15:32:23 -0500 |
| commit | 196294a73e32f5f1cd511a8c23006d23839c7e57 (patch) | |
| tree | 8d492b7c4f3964f175bad2d377c4222f6fc39912 | |
| parent | 17f673dd6fee08309970f8ff721855cf1644b45f (diff) | |
| download | puppet-196294a73e32f5f1cd511a8c23006d23839c7e57.tar.gz puppet-196294a73e32f5f1cd511a8c23006d23839c7e57.tar.xz puppet-196294a73e32f5f1cd511a8c23006d23839c7e57.zip | |
(4576) - if ENC declares invalid class, it is logged at warning.
used to be at info, so you had to run the master on verbose to
see it an ENC was trying to declare a class that could not be loaded.
| -rw-r--r-- | lib/puppet/parser/compiler.rb | 2 | ||||
| -rwxr-xr-x | spec/unit/parser/compiler_spec.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/puppet/parser/compiler.rb b/lib/puppet/parser/compiler.rb index fdabd05c9..6e8e3d26b 100644 --- a/lib/puppet/parser/compiler.rb +++ b/lib/puppet/parser/compiler.rb @@ -162,7 +162,7 @@ class Puppet::Parser::Compiler resource.evaluate unless lazy_evaluate found << name else - Puppet.info "Could not find class #{name} for #{node.name}" + Puppet.warning "Could not find class #{name} for #{node.name}" @catalog.tag(name) end end diff --git a/spec/unit/parser/compiler_spec.rb b/spec/unit/parser/compiler_spec.rb index 687f2ecb9..261cfdec1 100755 --- a/spec/unit/parser/compiler_spec.rb +++ b/spec/unit/parser/compiler_spec.rb @@ -581,12 +581,11 @@ describe Puppet::Parser::Compiler do @scope.expects(:find_hostclass).with("notfound").returns(nil) @compiler.evaluate_classes(%w{notfound}, @scope) end - # I wish it would fail it "should log when it can't find class" do klasses = {'foo'=>nil} @node.classes = klasses @compiler.topscope.stubs(:find_hostclass).with('foo').returns(nil) - Puppet.expects(:info).with('Could not find class foo for testnode') + Puppet.expects(:warning).with('Could not find class foo for testnode') @compiler.compile end end |
