[pmg-devel] applied: [PATCH pmg-api] pmgsh: fix 'help' command
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Mar 9 12:30:56 CET 2020
On 3/9/20 10:24 AM, Dominik Csapak wrote:
> we changed the RESTEnvironment a while ago to not have the 'hidepw'
> parameter anymore, so remove it in pmgsh as well
>
> this fixes executions of 'pmgsh help /path'
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> src/bin/pmgsh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/bin/pmgsh b/src/bin/pmgsh
> index b7d1558..114b98a 100755
> --- a/src/bin/pmgsh
> +++ b/src/bin/pmgsh
> @@ -339,7 +339,7 @@ sub print_help {
> my $cmd = reverse_map_cmd($method);
>
> print $mi->{handler}->usage_str($mi->{info}->{name}, "$cmd $path", [], $mi->{uri_param},
> - $opts->{verbose} ? 'full' : 'short', 1);
> + $opts->{verbose} ? 'full' : 'short');
> print "\n\n" if $opts->{verbose};
> }
>
>
applied, found another smaller issue when testing this which was easy to
fix and present for PVE too[0], so double thanks I guess :)
[0]: https://pve.proxmox.com/pipermail/pve-devel/2020-March/042207.html
More information about the pmg-devel
mailing list