2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

fix issue 4658, parameter check for rpower openbmc

This commit is contained in:
XuWei 2018-01-19 02:57:02 -05:00
parent f3953135d0
commit 589ee960e3

View File

@ -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];