From 90851cec3c197dec7849726dfb43330d7403fc83 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 31 Jul 2018 08:29:45 +0200 Subject: [PATCH] print_api_result: fix test for undefined $result_schema --- src/PVE/CLIFormatter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm index 411da5d..dfc3679 100644 --- a/src/PVE/CLIFormatter.pm +++ b/src/PVE/CLIFormatter.pm @@ -409,7 +409,7 @@ sub print_api_result { my $format = $options->{'output-format'} // 'text'; - if (!$result_schema) { + if ($result_schema) { return if $result_schema->{type} eq 'null'; } else { my $type = $guess_type->($data); -- 2.39.2