fixed defect: 2831058. rpower return 0 if error occurs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3954 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
af248057aa
commit
4d41d0a5f4
@ -124,7 +124,7 @@ sub usage_noderange {
|
||||
if (!$noderange) {
|
||||
$usage_string="Missing Noderange\n";
|
||||
$usage_string .=xCAT::Usage->getUsage($command);
|
||||
$callback->({data=>$usage_string});
|
||||
$callback->({error=>[$usage_string],errorcode=>[1]});
|
||||
$request = {};
|
||||
return;
|
||||
}
|
||||
|
@ -1950,7 +1950,7 @@ sub preprocess_request {
|
||||
if (!$noderange) {
|
||||
$usage_string="Missing Noderange\n";
|
||||
$usage_string .=xCAT::Usage->getUsage($command);
|
||||
$callback->({data=>$usage_string});
|
||||
$callback->({error=>[$usage_string],errorcode=>[1]});
|
||||
$request = {};
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user