X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=PVE%2FAPIClient%2FCommands%2Flist.pm;h=1fb90bf1a5924cd207f8383bdd80818e81740bd1;hp=10a8f7c5afd0831b994d17c2966aefc8e4693dea;hb=59d3653b9157801cb1fcd2c80cc03df2db9437f8;hpb=874acd772a052fa393ae3cacc8d45dbceda18a16 diff --git a/PVE/APIClient/Commands/list.pm b/PVE/APIClient/Commands/list.pm index 10a8f7c..1fb90bf 100644 --- a/PVE/APIClient/Commands/list.pm +++ b/PVE/APIClient/Commands/list.pm @@ -30,7 +30,6 @@ __PACKAGE__->register_method ({ additionalProperties => 0, properties => { remote => get_standard_option('pveclient-remote-name'), - 'format' => get_standard_option('pve-output-format'), }, }, returns => { @@ -43,9 +42,6 @@ __PACKAGE__->register_method ({ code => sub { my ($param) = @_; - my $format = PVE::APIClient::Tools::extract_param($param, 'format'); - PVE::APIClient::Helpers::set_output_format($format); - my $config = PVE::APIClient::Config->load(); my $conn = PVE::APIClient::Config->remote_conn($config, $param->{remote}); @@ -54,7 +50,8 @@ __PACKAGE__->register_method ({ our $cmddef = [ __PACKAGE__, 'list', ['remote'], {}, sub { - PVE::APIClient::Helpers::print_ordered_result($list_returns_properties, @_); + my ($data, $schema, $options) = @_; + PVE::APIClient::Helpers::print_ordered_result($list_returns_properties, $data, $schema, $options); }]; 1;