mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 13:12:26 +00:00
print_api_list: we only handle API results of type 'array'
...for now at least Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
85b9def289
commit
305fc1e12a
@ -466,6 +466,8 @@ sub print_entry {
|
|||||||
sub print_api_list {
|
sub print_api_list {
|
||||||
my ($props_to_print, $data, $returninfo) = @_;
|
my ($props_to_print, $data, $returninfo) = @_;
|
||||||
|
|
||||||
|
die "can only print array result" if $returninfo->{type} ne 'array';
|
||||||
|
|
||||||
my $returnprops = $returninfo->{items}->{properties};
|
my $returnprops = $returninfo->{items}->{properties};
|
||||||
|
|
||||||
my $formatopts = [];
|
my $formatopts = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user