]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/CLIFormatter.pm
fix #1914: CLIFormatter: check also for existence of 'type'
[pve-common.git] / src / PVE / CLIFormatter.pm
index 47021800956a806904aec6d885aadb2804bc8fa1..3040323eff0f480fe096fbdf1be2c196e80181b3 100644 (file)
@@ -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);