summaryrefslogtreecommitdiff
path: root/chef/lib/chef/index_queue/consumer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/lib/chef/index_queue/consumer.rb')
-rw-r--r--chef/lib/chef/index_queue/consumer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/chef/lib/chef/index_queue/consumer.rb b/chef/lib/chef/index_queue/consumer.rb
index b7be42ed76..18e8d3b8fc 100644
--- a/chef/lib/chef/index_queue/consumer.rb
+++ b/chef/lib/chef/index_queue/consumer.rb
@@ -56,7 +56,7 @@ class Chef
alias :start :run
def call_action_for_message(message)
- amqp_payload = JSON.parse(message[:payload], :create_additions => false, :max_nesting => false)
+ amqp_payload = Chef::JSON.from_json(message[:payload], :create_additions => false, :max_nesting => false)
action = amqp_payload["action"].to_sym
app_payload = amqp_payload["payload"]
assert_method_whitelisted(action)
@@ -73,4 +73,4 @@ class Chef
end
end
-end \ No newline at end of file
+end