vendored/puppet/lib/puppet/resource/status.rb in bolt-0.11.0 vs vendored/puppet/lib/puppet/resource/status.rb in bolt-0.12.0
- old
+ new
@@ -142,10 +142,9 @@
# Both set the status state to failed and generate a corresponding
# Puppet::Transaction::Event failure with the given message.
# @param message [String] the reason for a status failure
def fail_with_event(message)
- failed = true
add_event(@real_resource.event(:name => :resource_error, :status => "failure", :message => message))
end
def initialize(resource)
@real_resource = resource