lib/bolt/result.rb in bolt-1.41.0 vs lib/bolt/result.rb in bolt-1.42.0

- old
+ new

@@ -6,12 +6,11 @@ module Bolt class Result attr_reader :target, :value, :action, :object def self.from_exception(target, exception) - @exception = exception - if @exception.is_a?(Bolt::Error) - error = @exception.to_h + if exception.is_a?(Bolt::Error) + error = exception.to_h else error = { 'kind' => 'puppetlabs.tasks/exception-error', 'issue_code' => 'EXCEPTION', 'msg' => exception.message,