]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Helpers.pm
PVE::APIClient::Helper::print_ordered_result - correctly declare local var
[pve-client.git] / PVE / APIClient / Helpers.pm
index 3e779b6924b976e3132c3019607117b257e59157..1503ec0c90428ee08ec63e4cb2e8005b2faaae1c 100644 (file)
@@ -411,8 +411,7 @@ sub print_ordered_result {
     my $format = get_output_format();
     my $param_order = extract_even_elements($property_list);
 
-    $options = {};
-
+    my $options = {};
     PVE::APIClient::CLIFormatter::query_terminal_options($options);
 
     PVE::APIClient::CLIFormatter::print_api_result($format, $data, $result_schema, $param_order, $options);