]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Commands/list.pm
rename defaut output format from 'table' to 'text'
[pve-client.git] / PVE / APIClient / Commands / list.pm
index f12ef8718766820e137f007708a9a3e6640f5600..2030c515423d0fecbd393a1395e37da62562785c 100644 (file)
@@ -31,7 +31,7 @@ __PACKAGE__->register_method ({
        my $conn = PVE::APIClient::Config->remote_conn($config, $param->{remote});
        my $resources = $conn->get('api2/json/cluster/resources', { type => 'vm' });
 
        my $conn = PVE::APIClient::Config->remote_conn($config, $param->{remote});
        my $resources = $conn->get('api2/json/cluster/resources', { type => 'vm' });
 
-       if (!defined($param->{format}) or $param->{format} eq 'table') {
+       if (!defined($param->{format}) or $param->{format} eq 'text') {
            my $headers = ['Node', 'VMID', 'Type', 'Name', 'Status'];
            my $data = [];
            for my $el (@$resources) {
            my $headers = ['Node', 'VMID', 'Type', 'Name', 'Status'];
            my $data = [];
            for my $el (@$resources) {