[pve-devel] applied: [PATCH manager] fix correct call to 'usage_str'

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Jun 28 13:22:09 CEST 2018


On 6/28/18 12:57 PM, Dominik Csapak wrote:
> we forgot to give usage_str also the param_mapping sub,
> else it fails on calling 'help'
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  bin/pvesh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/bin/pvesh b/bin/pvesh
> index 5f9b7241..0394a355 100755
> --- a/bin/pvesh
> +++ b/bin/pvesh
> @@ -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', $param_mapping);
>  	print "\n\n" if $opts->{verbose};
>      }
>   
> 

applied




More information about the pve-devel mailing list