2
0
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:
Bin Xu 2017-08-31 10:51:08 +08:00 committed by yangsong
parent 80bbe5eece
commit 6c93b03d94

View File

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