From 34ea500af702d7828c0225467c7067af0aab01c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Wed, 21 Oct 2026 20:09:17 -0300 Subject: [PATCH] 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. --- xCAT-server/lib/xcat/plugins/syncfiles.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/syncfiles.pm b/xCAT-server/lib/xcat/plugins/syncfiles.pm index 66a7e0b4c1..ddabf4dc8d 100644 --- a/xCAT-server/lib/xcat/plugins/syncfiles.pm +++ b/xCAT-server/lib/xcat/plugins/syncfiles.pm @@ -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); }