summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorajax <ajax@980ebf18-57e1-0310-9a29-db15c13687c0>2006-10-02 17:08:36 +0000
committerajax <ajax@980ebf18-57e1-0310-9a29-db15c13687c0>2006-10-02 17:08:36 +0000
commit6e6cb8f56c6840034a1f711d28907cbc7e5fa81f (patch)
tree6056b7e7e67ca64856c31fa8be3341588aeaa522 /lib/puppet
parent30f9fa3134809d38e5cf397946d30bbb3622fb38 (diff)
downloadpuppet-6e6cb8f56c6840034a1f711d28907cbc7e5fa81f.tar.gz
puppet-6e6cb8f56c6840034a1f711d28907cbc7e5fa81f.tar.xz
puppet-6e6cb8f56c6840034a1f711d28907cbc7e5fa81f.zip
Messages will now be at current loglevel, regardless of whether the object path is displayed.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1712 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/type/notify.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/puppet/type/notify.rb b/lib/puppet/type/notify.rb
index 542b5f0b4..4525feb17 100644
--- a/lib/puppet/type/notify.rb
+++ b/lib/puppet/type/notify.rb
@@ -13,7 +13,7 @@ module Puppet
when :true:
log(self.should)
else
- Puppet::info(self.should)
+ Puppet.send(@parent[:loglevel], self.should)
end
return
end
@@ -29,9 +29,7 @@ module Puppet
end
newparam(:withpath) do
- desc "Whether to not to show the full object path. If true, the message
- will be sent to the client at the current loglevel. If false,
- the message will be sent to the client at the info level."
+ desc "Whether to not to show the full object path. Sends the message at the current loglevel."
defaultto :true
newvalues(:true, :false)
end