mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Merge pull request #6428 from cxhong/6335
Handle the bad return code if rinstall is failed on nodeset
This commit is contained in:
commit
ab1fac4a41
@ -387,6 +387,16 @@ sub rinstall {
|
||||
xCAT::MsgUtils->message("I", $rsp, $callback);
|
||||
}
|
||||
|
||||
# if only provision one node and failed nodeset, will exit the command
|
||||
# instead of continue with rnetboot/rsetboot, rpower.
|
||||
if (scalar(@nodes) == 1) {
|
||||
$rsp->{error}->[0] = "Failed to run 'nodeset' against the node: @nodes";
|
||||
$rsp->{errorcode}->[0] = 1;
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
foreach my $node (@failurenodes) {
|
||||
delete $nodes{$node};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user