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:
parent
4da2095529
commit
349d1d2f2c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user