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:
@@ -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 !~ /:/) {
|
||||
|
||||
Reference in New Issue
Block a user