Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #492 from ripienaar/460
Browse files Browse the repository at this point in the history
(#460) ensure playbook task results are always JSON safe
  • Loading branch information
ripienaar committed May 11, 2018
2 parents b2e5eb2 + d0e4622 commit 99be101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mcollective/util/bolt_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def run_task(scope, type, properties)
execution_result = runner.to_execution_result([result.success, result.msg, result.data])

results = execution_result.map do |node, result_properties|
TaskResult.new(node, result_properties)
TaskResult.new(node, JSON.parse(result_properties.to_json))
end

task_results = TaskResults.new(results, nil)
Expand Down

0 comments on commit 99be101

Please sign in to comment.