Skip to content

Commit 230960a

Browse files
author
Igor Nogueira de Oliveira
committed
Notify now honors withpath parameter
Notify should not represent a state of a resource since it only "exists" during execution time. This change proposes that it should be considered to always "exist", thus avoiding a change notification. Signed-off-by: Igor Nogueira de Oliveira <igor@acumera.com>
1 parent bbea86f commit 230960a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

lib/puppet/type/notify.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,21 @@ module Puppet
1111

1212
newproperty(:message, :idempotent => false) do
1313
desc "The message to be sent to the log. Note that the value specified must be a string."
14-
def sync
14+
def insync?(is)
1515
message = @sensitive ? 'Sensitive [value redacted]' : should
1616
case @resource["withpath"]
1717
when :true
1818
send(@resource[:loglevel], message)
1919
else
2020
Puppet.send(@resource[:loglevel], message)
2121
end
22-
nil
22+
true
2323
end
2424

2525
def retrieve
2626
:absent
2727
end
2828

29-
def insync?(is)
30-
false
31-
end
32-
3329
defaultto { @resource[:name] }
3430
end
3531

0 commit comments

Comments
 (0)