From: Dietmar Maurer Date: Fri, 27 Jul 2018 05:34:49 +0000 (+0200) Subject: pvesh: add standard_output_properties to set/create/delete X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=233dbe039fe52a2143f0d1bc1b0bda8c6ac79b22;p=pve-manager-legacy.git pvesh: add standard_output_properties to set/create/delete Most of those API calls return simple strings, so it does not really matter. Nethertheless, some calls return complex data structures and we want to set output format for them. --- diff --git a/PVE/CLI/pvesh.pm b/PVE/CLI/pvesh.pm index 6808e77a..ccfb5c20 100755 --- a/PVE/CLI/pvesh.pm +++ b/PVE/CLI/pvesh.pm @@ -379,7 +379,7 @@ __PACKAGE__->register_method ({ description => "Call API PUT on .", parameters => { additionalProperties => 0, - properties => $path_properties, + properties => PVE::RESTHandler::add_standard_output_properties($path_properties), }, returns => { type => 'null' }, code => sub { @@ -397,7 +397,7 @@ __PACKAGE__->register_method ({ description => "Call API POST on .", parameters => { additionalProperties => 0, - properties => $path_properties, + properties => PVE::RESTHandler::add_standard_output_properties($path_properties), }, returns => { type => 'null' }, code => sub { @@ -415,7 +415,7 @@ __PACKAGE__->register_method ({ description => "Call API DELETE on .", parameters => { additionalProperties => 0, - properties => $path_properties, + properties => PVE::RESTHandler::add_standard_output_properties($path_properties), }, returns => { type => 'null' }, code => sub {