[pve-devel] applied: [PATCH manager 1/2] fix: api2: add return type to nodes/{node}/execute endpoint

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Aug 2 14:45:37 CEST 2022


thanks!

On July 27, 2022 4:56 pm, Stefan Sterz wrote:
> 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 at proxmox.com>
> ---
>  PVE/API2/Nodes.pm | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
> index 655493a3..ef946301 100644
> --- a/PVE/API2/Nodes.pm
> +++ b/PVE/API2/Nodes.pm
> @@ -438,8 +438,9 @@ __PACKAGE__->register_method({
>      },
>      returns => {
>  	type => 'array',
> -	properties => {
> -
> +	items => {
> +	    type => "object",
> +	    properties => {},
>  	},
>      },
>      code => sub {
> -- 
> 2.30.2
> 
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> 
> 





More information about the pve-devel mailing list