X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=PVE%2FAPIClient%2FHelpers.pm;h=cc1951401d3247b5682a35857a164471f71cf8d0;hp=7aec16082b30814c93056abbe971e03568216c70;hb=b5aeedb0629a748eb3ac6d643c2c418d331fa57d;hpb=4db9ff67bc9b370e179e568f102be9242323632a diff --git a/PVE/APIClient/Helpers.pm b/PVE/APIClient/Helpers.pm index 7aec160..cc19514 100644 --- a/PVE/APIClient/Helpers.pm +++ b/PVE/APIClient/Helpers.pm @@ -43,7 +43,7 @@ $build_pve_api_path_hash = sub { } }; -my $default_output_format = 'table'; +my $default_output_format = 'text'; my $client_output_format = $default_output_format; sub set_output_format { @@ -71,7 +71,7 @@ sub print_result { if ($format eq 'json') { print to_json($data, {utf8 => 1, allow_nonref => 1, canonical => 1, pretty => 1 }); - } elsif ($format eq 'table') { + } elsif ($format eq 'text') { my $type = $result_schema->{type}; if ($type eq 'object') { die "implement me";