From 589ee960e35fe0a3f3205dcbbd67565325f99395 Mon Sep 17 00:00:00 2001 From: XuWei Date: Fri, 19 Jan 2018 02:57:02 -0500 Subject: [PATCH] fix issue 4658, parameter check for rpower openbmc --- xCAT-server/lib/xcat/plugins/openbmc2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc2.pm b/xCAT-server/lib/xcat/plugins/openbmc2.pm index 6f1bfaf99..3c59bbe0b 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc2.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc2.pm @@ -136,7 +136,7 @@ sub parse_args { my $noderange = shift; my $subcommand = undef; - if (scalar(@ARGV) != 2 and ($command =~ /rpower/)) { + if (scalar(@ARGV) != 1 and ($command =~ /rpower/)) { return ([ 1, "Only one option is supported at the same time for $command" ]); } else { $subcommand = $ARGV[0];