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

Dominik Csapak d.csapak at proxmox.com
Thu Jun 28 12:57:56 CEST 2018


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};
     }
  
-- 
2.11.0





More information about the pve-devel mailing list