2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-29 05:42:17 +00:00

fix(syncfiles): retain the client name when node lookup fails

Keep the original client name for the rejection diagnostic. Use the resolved
node only for dispatch, without changing identity or copy-command handling.
This commit is contained in:
Vinícius Ferrão
2026-10-21 20:09:17 -03:00
parent 21a0ad8089
commit 34ea500af7
+4 -3
View File
@@ -73,14 +73,15 @@ sub process_request
$::RCP=$options{'node-rcp'};
}
if ($client) { ($client) = noderange($client) }
unless ($client) { #Not able to do identify the host in question
my $node;
if ($client) { ($node) = noderange($client) }
unless ($node) { #Not able to do identify the host in question
xCAT::MsgUtils->message("S", "Received syncfiles from $client, which couldn't be correlated to a node (domain mismatch?)");
return;
}
require xCAT::Postage;
&syncfiles($client, $callback, $subreq);
&syncfiles($node, $callback, $subreq);
}