- From: David Montgomery <
>
- To:
- Subject: [chef] how do save list to json in disk
- Date: Thu, 11 Dec 2014 09:29:13 +0800
Why??? Does not to_json work?
redis_queue = ["queue"]
redis_queue = node['monitor']['redis_queue']
redis_queue=redis_queue.to_json
file "/var/redis_queue_list.json" do
owner 'root'
group 'root'
mode '0666'
content "#{redis_queue}"
end
This is what he file looks like
["queue"]
Why will my recipe not save in a valid json format?
My python script bombs when trying to read
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
thanks
- [chef] how do save list to json in disk, David Montgomery, 12/10/2014
Archive powered by MHonArc 2.6.16.