2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-10-30 19:02:27 +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:
xuweibj
2017-10-09 14:22:35 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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$/) {