2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-05-17 19:57:18 +00:00

Merge pull request #7554 from VersatusHPC/fix/dhcpop-requires

fix: use runtime require for xCAT::DHCP::Backend in dhcpop
This commit is contained in:
Markus Hilger
2026-05-06 18:45:27 +02:00
committed by GitHub
+1 -1
View File
@@ -11,7 +11,6 @@ use lib "$::XCATROOT/lib/perl";
use Getopt::Long;
use Fcntl ':flock';
use xCAT::DHCP::Backend;
sub usage{
print "Usage: dhcphelper -h \n";
@@ -39,6 +38,7 @@ if($help){
&usage;
exit 0;
}elsif($rmop){
require xCAT::DHCP::Backend;
my $backend = xCAT::DHCP::Backend->new_backend();
if (ref($backend) ne 'HASH' && $backend->name eq 'kea') {
if ($mac && $mac !~ /:/) {