mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-22 13:33:52 +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>
This commit is contained in:
parent
57efabf2d5
commit
7caf308ca7
@ -1240,6 +1240,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…
Reference in New Issue
Block a user