mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-10-30 10:52:31 +00:00
Merge pull request #4056 from whowutwut/beacon_stat
Print a better message for rbeacon indicating that only on and off is supported
This commit is contained in:
@@ -3048,7 +3048,7 @@ sub beacon {
|
||||
$ipmiv2 = 1;
|
||||
}
|
||||
if ($subcommand ne "on" and $subcommand ne "off") {
|
||||
xCAT::SvrUtils::sendmsg([ 1, "please specify on or off for ipmi nodes (stat impossible)" ], $callback, $sessdata->{node}, %allerrornodes);
|
||||
xCAT::SvrUtils::sendmsg([ 1, "Only 'on' or 'off' is supported for IPMI managed nodes."], $callback, $sessdata->{node}, %allerrornodes);
|
||||
}
|
||||
|
||||
#if stuck with 1.5, say light for 255 seconds. In 2.0, specify to turn it on forever
|
||||
|
||||
@@ -559,7 +559,7 @@ sub parse_args {
|
||||
|
||||
if ($command eq "rbeacon") {
|
||||
unless ($subcommand =~ /^on$|^off$/) {
|
||||
return ([ 1, "Unsupported command: $command $subcommand" ]);
|
||||
return ([ 1, "Only 'on' or 'off' is supported for OpenBMC managed nodes."]);
|
||||
}
|
||||
} elsif ($command eq "rpower") {
|
||||
unless ($subcommand =~ /^on$|^off$|^softoff$|^reset$|^boot$|^bmcreboot$|^bmcstate$|^status$|^stat$|^state$/) {
|
||||
|
||||
Reference in New Issue
Block a user