mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
Fix 3737, updatenode -F will return non-zero when some nodes are failed. (#3816)
This commit is contained in:
parent
80bbe5eece
commit
6c93b03d94
@ -1791,11 +1791,17 @@ sub updatenodesyncfiles
|
||||
if ($request->{SNFileSyncing}->[0] eq "yes") {
|
||||
my $rsp = {};
|
||||
$rsp->{data}->[0] = "File synchronization has completed for service nodes.";
|
||||
if (@::FAILEDNODES) {
|
||||
$rsp->{errorcode}->[0] = 1;
|
||||
}
|
||||
$callback->($rsp);
|
||||
}
|
||||
if ($request->{FileSyncing}->[0] eq "yes") {
|
||||
my $rsp = {};
|
||||
$rsp->{data}->[0] = "File synchronization has completed for nodes.";
|
||||
if (@::FAILEDNODES) {
|
||||
$rsp->{errorcode}->[0] = 1;
|
||||
}
|
||||
$callback->($rsp);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user