]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Commands/remote.pm
use new features from pve-common
[pve-client.git] / PVE / APIClient / Commands / remote.pm
index 2e5337aa2c9be3a2837b5019ac7a18d93f09ca79..bd13e2b103f42dcfe530a06870a8710565eb213f 100644 (file)
@@ -35,9 +35,7 @@ __PACKAGE__->register_method ({
     description => "List remotes from your config file.",
     parameters => {
        additionalProperties => 0,
-       properties => {
-           'format' => get_standard_option('pve-output-format'),
-       },
+       properties => {},
     },
     returns => {
        type => 'array',
@@ -49,9 +47,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 $res = [];
@@ -212,7 +207,8 @@ our $cmddef = {
     set => [ __PACKAGE__, 'remote_set', ['name']],
     delete => [ __PACKAGE__, 'remote_delete', ['name']],
     list => [__PACKAGE__, 'remote_list', undef, {}, sub {
-       PVE::APIClient::Helpers::print_ordered_result($remote_list_returns_properties, @_);
+       my ($data, $schema, $options) = @_;
+       PVE::APIClient::Helpers::print_ordered_result($remote_list_returns_properties, $data, $schema, $options);
     }],
 };