[pmg-devel] [PATCH pmg-api] pmgsh: fix 'help' command

Dominik Csapak d.csapak at proxmox.com
Mon Mar 9 10:24:46 CET 2020


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




More information about the pmg-devel mailing list