X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=PVE%2FAPIClient%2FRESTHandler.pm;h=d3806c748fb3f92e3c03bf87d6f790dfab052bf0;hp=ef30ba9744048a085a004d37bb42f7bece9a3bd0;hb=969b8624f35127abbf0002412932a247bfec4707;hpb=4e14c0d17b0512ba8351cbe77115dd31dd5b17cf diff --git a/PVE/APIClient/RESTHandler.pm b/PVE/APIClient/RESTHandler.pm index ef30ba9..d3806c7 100644 --- a/PVE/APIClient/RESTHandler.pm +++ b/PVE/APIClient/RESTHandler.pm @@ -553,6 +553,10 @@ my $compute_param_mapping_hash = sub { my ($name, $func, $desc, $interactive); if (ref($item) eq 'ARRAY') { ($name, $func, $desc, $interactive) = @$item; + } elsif (ref($item) eq 'HASH') { + # just use the hash + $res->{$item->{name}} = $item; + next; } else { $name = $item; $func = sub { return PVE::APIClient::Tools::file_get_contents($_[0]) };