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