X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FCLIFormatter.pm;h=3040323eff0f480fe096fbdf1be2c196e80181b3;hp=47021800956a806904aec6d885aadb2804bc8fa1;hb=fbd10e04e73ae319f1c59f37344a60e9d640fe9d;hpb=9194ee0657800037907ae8670cfdb214952f18bf diff --git a/src/PVE/CLIFormatter.pm b/src/PVE/CLIFormatter.pm index 4702180..3040323 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 && defined($result_schema->{type})) { return if $result_schema->{type} eq 'null'; } else { my $type = $guess_type->($data);