X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=PVE%2FAPIClient%2FCommands%2Fconfig.pm;fp=PVE%2FAPIClient%2FCommands%2Fconfig.pm;h=b4316d80550ecce889504b0b2ee5bf2a26f11c38;hp=a5171fbf8af43753ae268da500cec413ab484d7c;hb=59d3653b9157801cb1fcd2c80cc03df2db9437f8;hpb=874acd772a052fa393ae3cacc8d45dbceda18a16 diff --git a/PVE/APIClient/Commands/config.pm b/PVE/APIClient/Commands/config.pm index a5171fb..b4316d8 100644 --- a/PVE/APIClient/Commands/config.pm +++ b/PVE/APIClient/Commands/config.pm @@ -9,6 +9,7 @@ use PVE::APIClient::JSONSchema qw(get_standard_option); use PVE::APIClient::Tools qw(extract_param); use PVE::APIClient::Config; +use PVE::APIClient::CLIFormatter; use PVE::APIClient::CLIHandler; use base qw(PVE::APIClient::CLIHandler); @@ -23,6 +24,7 @@ __PACKAGE__->register_method ({ description => "Dump default configuration.", parameters => { additionalProperties => 0, + properties => {}, }, returns => { type => 'object', @@ -90,7 +92,13 @@ __PACKAGE__->register_method ({ our $cmddef = { set => [ __PACKAGE__, 'set',], - list => [__PACKAGE__, 'list', undef, undef, sub { PVE::APIClient::Helpers::print_result(@_);}], + list => [__PACKAGE__, 'list', undef, undef, + sub { + my ($data, $schema, $options) = @_; + + PVE::APIClient::CLIFormatter::print_api_result($data, $schema, undef, $options); + } + ], }; 1;