projects
/
pve-common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix #1914: CLIFormatter: check also for existence of 'type'
[pve-common.git]
/
src
/
PVE
/
CLIFormatter.pm
diff --git
a/src/PVE/CLIFormatter.pm
b/src/PVE/CLIFormatter.pm
index
4702180
..
3040323
100644
(file)
--- 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);