lib/bolt/error.rb in bolt-1.1.0 vs lib/bolt/error.rb in bolt-1.2.0
- old
+ new
@@ -15,11 +15,11 @@
def msg
message
end
def to_h
- h = { 'kind' => kind,
+ h = { 'kind' => kind,
'msg' => message,
'details' => details }
h['issue_code'] = issue_code if issue_code
h
end
@@ -51,10 +51,10 @@
attr_reader :result_set
def initialize(result_set, action, object)
details = {
'action' => action,
- 'object' => object,
+ 'object' => object,
'result_set' => result_set
}
message = "Plan aborted: #{action} '#{object}' failed on #{result_set.error_set.length} nodes"
super(message, 'bolt/run-failure', details)
@result_set = result_set