added help message for people that just do rpower <noderange> noaction
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3435 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2afaf7db9b
commit
81c08bb76f
@ -6018,6 +6018,12 @@ sub preprocess_request {
|
||||
|
||||
if ($command eq "rpower") {
|
||||
my $subcmd=$exargs[0];
|
||||
if($subcmd eq ''){
|
||||
$callback->({data=>["Please enter an action (eg: boot,off,on, etc)", $usage_string]});
|
||||
$request = {};
|
||||
return 0;
|
||||
|
||||
}
|
||||
if ( ($subcmd ne 'stat') && ($subcmd ne 'state') && ($subcmd ne 'status') && ($subcmd ne 'on') && ($subcmd ne 'off') && ($subcmd ne 'softoff') && ($subcmd ne 'nmi')&& ($subcmd ne 'cycle') && ($subcmd ne 'reset') && ($subcmd ne 'boot')) {
|
||||
$callback->({data=>["Unsupported command: $command $subcmd", $usage_string]});
|
||||
$request = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user