1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-23 21:57:43 +03:00

Pretty print json in oneacct

This commit is contained in:
Daniel Molina 2012-08-30 20:14:03 +02:00
parent 4da2095529
commit 349d1d2f2c

View File

@ -68,7 +68,7 @@ cmd = CommandParser::CmdParser.new(ARGV) do
xmldoc = XMLElement.new
xmldoc.initialize_xml(xml_str, 'HISTORY_RECORDS')
puts xmldoc.to_hash.to_json
puts JSON.pretty_generate(xmldoc.to_hash)
elsif options[:xml]
puts xml_str
end