2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 04:10:46 +00:00

Merge pull request #4660 from xuweibj/I4658

fix issue 4658, parameter check for rpower openbmc
This commit is contained in:
Yuan Bai
2018-01-19 16:34:00 +08:00
committed by GitHub

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