diff --git a/src/cli/one_helper.rb b/src/cli/one_helper.rb index 8d9cd25f26..c04b43e024 100644 --- a/src/cli/one_helper.rb +++ b/src/cli/one_helper.rb @@ -918,12 +918,12 @@ EOT elsif options[:xml] return list_pool_xml(pool, options, filter_flag) elsif options[:json] - list_pool_format(pool, options, filter_flag) do |pool| + return list_pool_format(pool, options, filter_flag) do |pool| hash = check_resource_xsd(pool, pname) puts ::JSON.pretty_generate(hash) end elsif options[:yaml] - list_pool_format(pool, options, filter_flag) do |pool| + return list_pool_format(pool, options, filter_flag) do |pool| hash = check_resource_xsd(pool, pname) puts hash.to_yaml(:indent => 4) end