description => "List remotes from your config file.",
parameters => {
additionalProperties => 0,
- properties => {
- 'format' => get_standard_option('pve-output-format'),
- },
+ properties => {},
},
returns => {
type => 'array',
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 = [];
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);
}],
};