]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
fix: api2: add return type to nodes/{node}/execute endpoint
authorStefan Sterz <s.sterz@proxmox.com>
Wed, 27 Jul 2022 14:56:11 +0000 (16:56 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 2 Aug 2022 12:14:02 +0000 (14:14 +0200)
since this was missing a proper return type definition the api viewer
couldn't display the endpoint (`retinfs.items` was undefined). also
the `pvesh` command would complain that it cannot properly format the
return type because the variable `$item_type` in `CLIFormatter.pm` was
not defined.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
PVE/API2/Nodes.pm

index 655493a3db8efea475d61e0a7dc8041b8b2241a3..ef946301adc4e3a105b562bc83418d0c7f9689b7 100644 (file)
@@ -438,8 +438,9 @@ __PACKAGE__->register_method({
     },
     returns => {
        type => 'array',
-       properties => {
-
+       items => {
+           type => "object",
+           properties => {},
        },
     },
     code => sub {