projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b51b930
)
print_api_result: fix test for undefined $result_schema
author
Dietmar Maurer
<dietmar@proxmox.com>
Tue, 31 Jul 2018 06:29:45 +0000
(08:29 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Tue, 31 Jul 2018 06:29:45 +0000
(08:29 +0200)
src/PVE/CLIFormatter.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/CLIFormatter.pm
b/src/PVE/CLIFormatter.pm
index 411da5ddd3cce6989b407aacd3e4cab954710564..dfc3679ad0a9330d1fc17d954cdeca432b934300 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) {
return if $result_schema->{type} eq 'null';
} else {
my $type = $guess_type->($data);