PVE::APIClient::Helper::print_ordered_result - correctly declare local var
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Jul 2018 08:09:52 +0000 (10:09 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 2 Jul 2018 08:09:52 +0000 (10:09 +0200)
PVE/APIClient/Helpers.pm

index 3e779b6..1503ec0 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);