]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Commands/list.pm
fixes for changes in pve-common
[pve-client.git] / PVE / APIClient / Commands / list.pm
index 1fb90bf1a5924cd207f8383bdd80818e81740bd1..df97d0dc07f341106d20b1916c4aea8b834c5d05 100644 (file)
@@ -25,7 +25,7 @@ __PACKAGE__->register_method ({
     name => 'list',
     path => 'list',
     method => 'GET',
-    description => "List containers.",
+    description => "List VMs and Containers.",
     parameters => {
        additionalProperties => 0,
        properties => {
@@ -49,9 +49,12 @@ __PACKAGE__->register_method ({
     }});
 
 
-our $cmddef = [ __PACKAGE__, 'list', ['remote'], {}, sub {
-    my ($data, $schema, $options) = @_;
-    PVE::APIClient::Helpers::print_ordered_result($list_returns_properties, $data, $schema, $options);
-}];
+our $cmddef = [ __PACKAGE__, 'list', ['remote'], {},
+               sub {
+                   my ($data, $schema, $options) = @_;
+                   PVE::APIClient::Helpers::print_ordered_result($list_returns_properties, $data, $schema, $options);
+               },
+               $PVE::APIClient::RESTHandler::standard_output_options,
+    ];
 
 1;