2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-04 20:17:55 +00:00

test(discovery): prepare shared findme helper loading

This commit is contained in:
Vinícius Ferrão
2026-08-25 19:33:08 -03:00
parent 0a8281880d
commit 875f7d764d
+8 -1
View File
@@ -9,9 +9,16 @@ use lib File::Spec->catdir( $FindBin::Bin, '..', '..',
'xCAT-server', 'lib', 'perl' );
use xCAT::BladeUtils;
my $shared_discovery_helper = eval {
require xCAT::DiscoveryUtils;
xCAT::DiscoveryUtils->can('findme_request_for_handler');
};
sub entry_for {
my ($req) = @_;
return xCAT::BladeUtils::findme_request_for_handler($req);
return $shared_discovery_helper
? xCAT::DiscoveryUtils::findme_request_for_handler($req)
: xCAT::BladeUtils::findme_request_for_handler($req);
}
# This is the request a booting node sends: a command and its own details, and