Skip to content

Commit

Permalink
Fix issue #6511: Ensure --json and --yaml flags are respected with --…
Browse files Browse the repository at this point in the history
…searchd

Signed-off-by: Pablo <[email protected]>
  • Loading branch information
pablodelarco committed Mar 11, 2024
1 parent 0abfaaa commit 07a7110
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/onevm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07a7110

Please sign in to comment.