mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
feature #2050: Pretty print json when updating a template
This commit is contained in:
1 parent
b5b33c2936
commit
23474f17a7
1 file changed
+1
-1
@@ -422,7 +422,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
document_hash = JSON.parse(response.body)
|
||||
template = document_hash['DOCUMENT']['TEMPLATE']['BODY']
|
||||
|
||||
tmp << template.to_json
|
||||
tmp << JSON.pretty_generate(template)
|
||||
tmp.flush
|
||||
|
||||
editor_path = ENV["EDITOR"] ? ENV["EDITOR"] : EDITOR_PATH
|
||||
|
||||
Reference in new issue
Block a user