]> git.proxmox.com Git - pve-client.git/blobdiff - pveclient
PVE::APIClient::Helper::print_ordered_result - correctly declare local var
[pve-client.git] / pveclient
index 7688ffe7670cc335d25676280724bf519aa76b69..c87b2cc8eabb7b220d8c392eb43dae96fca5dfe6 100755 (executable)
--- a/pveclient
+++ b/pveclient
@@ -8,6 +8,7 @@ use Cwd 'abs_path';
 use Data::Dumper;
 
 use PVE::APIClient::JSONSchema qw(register_standard_option get_standard_option);
+use PVE::APIClient::CLIFormatter;
 use PVE::APIClient::CLIHandler;
 use PVE::APIClient::PTY;
 
@@ -109,7 +110,10 @@ my $format_result = sub {
     my ($data) = @_;
 
     my $format = PVE::APIClient::Helpers::get_output_format();
-    PVE::APIClient::CLIHandler::print_api_result($format, $data, $path_returns);
+
+    my $options = PVE::APIClient::CLIFormatter::query_terminal_options({});
+
+    PVE::APIClient::CLIFormatter::print_api_result($format, $data, $path_returns, undef, $options);
 };
 
 __PACKAGE__->register_method ({