[pve-devel] [pve-manager cli cleanup 2/4] pvesh ls: use print_api_result_plain

Dietmar Maurer dietmar at proxmox.com
Thu Aug 9 11:43:41 CEST 2018


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 PVE/CLI/pvesh.pm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/PVE/CLI/pvesh.pm b/PVE/CLI/pvesh.pm
index ccfb5c20..fef82582 100755
--- a/PVE/CLI/pvesh.pm
+++ b/PVE/CLI/pvesh.pm
@@ -347,9 +347,7 @@ __PACKAGE__->register_method ({
 
 	my $schema = { type => 'array', items => { type => 'object' }};
 	$stdopts->{sort_key} = 'name';
-	$stdopts->{noborder} //= 1;
-	$stdopts->{noheader} //= 1;
-	PVE::CLIFormatter::print_api_result($res, $schema, ['capabilities', 'name'], $stdopts);
+	PVE::CLIFormatter::print_api_result_plain($res, $schema, ['capabilities', 'name'], $stdopts);
 
 	return undef;
     }});
-- 
2.11.0




More information about the pve-devel mailing list