mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
F OpenNebula/one#6511: CLI listing formatting ignored (#2979)
when passing --search Signed-off-by: Pablo <pdelarco@opennebula.io> Co-authored-by: Tino Vázquez <cvazquez@opennebula.io> (cherry picked from commit 7caf308ca790c561041e5341d7dcd14d193fb900)
This commit is contained in:
parent
b39102d73f
commit
2d6cd77324
@ -1252,6 +1252,10 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
|
||||
if options[:xml]
|
||||
puts pool.to_xml
|
||||
elsif options[:json]
|
||||
puts JSON.pretty_generate(pool.to_hash)
|
||||
elsif options[:yaml]
|
||||
puts pool.to_hash.to_yaml
|
||||
else
|
||||
table.show(pool.to_hash, options)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user