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:
parent
f3953135d0
commit
589ee960e3
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user