[pmg-devel] applied: [PATCH v3 common] get_options: don't set optional positional params to `undef`
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Mar 16 13:17:09 CET 2021
On 16.03.21 11:24, Wolfgang Bumiller wrote:
> Currently this happened if (and only if) at least one
> positional parameter was passed.
>
> We run into this with
> `pmgconfig cert delete <type> [<restart>]`
> vs
> `pvenode cert delete [<restart>]`
>
> where in the PVE case the `restart` option was simply
> omitted, whereas for PMG due to the existence of `<type>`
> the `restart` option was explicitly passedset in the $opts
> hash but ended up being `undef`.
>
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
> * New in this version
>
> src/PVE/JSONSchema.pm | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
>
applied, thanks!
More information about the pmg-devel
mailing list