[pve-devel] applied: [PATCH pve-common] cli: print_text_table: another fix for poperties without schema
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Jun 27 12:36:38 CEST 2018
On 6/27/18 12:01 PM, Dietmar Maurer wrote:
> Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
> ---
> src/PVE/CLIHandler.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm
> index 36eb5a8..a0d5b0e 100644
> --- a/src/PVE/CLIHandler.pm
> +++ b/src/PVE/CLIHandler.pm
> @@ -495,7 +495,7 @@ sub print_text_table {
> printf $formatstring, map { $colopts->{$_}->{title} } @$props_to_print;
>
> if (defined($sort_key)) {
> - my $type = $returnprops->{$sort_key}->{type};
> + my $type = $returnprops->{$sort_key}->{type} // 'string';
> if ($type eq 'integer' || $type eq 'number') {
> @$data = sort { $a->{$sort_key} <=> $b->{$sort_key} } @$data;
> } else {
>
applied
More information about the pve-devel
mailing list