X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FRESTHandler.pm;h=ed7686324ec4f9127fd852fa95330d346aaedcde;hp=e395b95d5c6ea02a1f63b8c50e96440d71191755;hb=5c59d8f99c1ba2d02bbf8a123131dc791fbf1e27;hpb=62c66c47fb838e50a468f60cabff67011a9d0fcf diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm index e395b95..ed76863 100644 --- a/src/PVE/RESTHandler.pm +++ b/src/PVE/RESTHandler.pm @@ -624,6 +624,16 @@ sub getopt_usage { } } + # also remove $standard_output_options from $prop (pvesh, pveclient) + if ($prop->{'output-format'}) { + $has_output_format_option = 1; + foreach my $key (keys %$prop) { + if ($standard_output_options->{$key}) { + delete $prop->{$key}; + } + } + } + my $out = ''; my $arg_hash = {};