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:
wanghuaz 2009-08-06 06:48:11 +00:00
parent af248057aa
commit 4d41d0a5f4
2 changed files with 2 additions and 2 deletions

View File

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

View File

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