]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
pvenode: fixup output formatting
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Jul 2018 12:05:51 +0000 (14:05 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 26 Jul 2018 11:09:08 +0000 (13:09 +0200)
PVE/CLI/pvenode.pm

index 9092a6c9ded52e477a0ea949a4c58cc1e7a2e1dd..9dee6ce9c4340398fd2ff817dbe51c5f6ca7771b 100644 (file)
@@ -17,6 +17,8 @@ use PVE::JSONSchema qw(get_standard_option);
 use PVE::NodeConfig;
 use PVE::RPCEnvironment;
 use PVE::CLIFormatter;
+use PVE::RESTHandler;
+use PVE::CLIHandler;
 
 use Term::ReadLine;
 
@@ -189,12 +191,14 @@ our $cmddef = {
                    $task->{status} = 'ERROR';
                }
            }
+           PVE::CLIFormatter::query_terminal_options($options);
            PVE::CLIFormatter::print_api_result($data, $schema, ['upid', 'type', 'id', 'user', 'starttime', 'endtime', 'status' ], $options);
-       }],
+       }, $PVE::RESTHandler::standard_output_options],
        status => [ 'PVE::API2::Tasks', 'read_task_status', [ 'upid' ], { node => $nodename }, sub {
            my ($data, $schema, $options) = @_;
+           PVE::CLIFormatter::query_terminal_options($options);
            PVE::CLIFormatter::print_api_result($data, $schema, undef, $options);
-       }],
+       }, $PVE::RESTHandler::standard_output_options],
        # set limit to 1000000, so we see the whole log, not only the first 50 lines by default
        log => [ 'PVE::API2::Tasks', 'read_task_log', [ 'upid' ], { node => $nodename, limit => 1000000 }, sub {
            my ($data, $resultprops) = @_;