diff --git a/lib/puppet/type/notify.rb b/lib/puppet/type/notify.rb index 81bda653f9..73b38565c5 100644 --- a/lib/puppet/type/notify.rb +++ b/lib/puppet/type/notify.rb @@ -11,7 +11,7 @@ module Puppet newproperty(:message, :idempotent => false) do desc "The message to be sent to the log. Note that the value specified must be a string." - def sync + def insync?(is) message = @sensitive ? 'Sensitive [value redacted]' : should case @resource["withpath"] when :true @@ -19,17 +19,13 @@ def sync else Puppet.send(@resource[:loglevel], message) end - nil + true end def retrieve :absent end - def insync?(is) - false - end - defaultto { @resource[:name] } end