1
0
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:
Pablo del Arco 2024-03-12 17:08:50 +01:00 committed by GitHub
parent 57efabf2d5
commit 7caf308ca7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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