return error returns even though no messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4539 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
10fdac457f
commit
46f262270f
@ -333,8 +333,8 @@ sub xdsh
|
||||
{
|
||||
my ($nodes, $args, $callback, $command, $noderange) = @_;
|
||||
|
||||
|
||||
# parse dsh input
|
||||
$::FAILED_NODES=0;
|
||||
# parse dsh input, will return $::NUMBER_NODES_FAILED
|
||||
my @local_results =
|
||||
xCAT::DSHCLI->parse_and_run_dsh($nodes, $args, $callback,
|
||||
$command, $noderange);
|
||||
@ -357,7 +357,11 @@ sub xdsh
|
||||
}
|
||||
xCAT::MsgUtils->message("D", $rsp, $callback);
|
||||
}
|
||||
return;
|
||||
# set return code
|
||||
$rsp = {};
|
||||
$rsp->{errorcode}= $::FAILED_NODES;
|
||||
$callback->($rsp);
|
||||
return();
|
||||
}
|
||||
|
||||
#-------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user