[pve-devel] applied: [pve-manager 3/6] pvenode: fixup output formatting
Dietmar Maurer
dietmar at proxmox.com
Thu Jul 26 13:14:15 CEST 2018
Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
PVE/CLI/pvenode.pm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/PVE/CLI/pvenode.pm b/PVE/CLI/pvenode.pm
index 9092a6c9..9dee6ce9 100644
--- a/PVE/CLI/pvenode.pm
+++ b/PVE/CLI/pvenode.pm
@@ -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) = @_;
--
2.11.0
More information about the pve-devel
mailing list