2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-02 16:28:25 +00:00

Recognize <xcatmaster> in dhcp

The recent change failed to treat <xcatmaster>
special.
This commit is contained in:
Jarrod Johnson
2018-02-23 16:00:58 -05:00
parent d159db0e7f
commit 3e8edef7dc

View File

@@ -1338,7 +1338,9 @@ sub preprocess_request
my $reqc = {%$req};
foreach my $dhcps (@dhcpservers) {
my $reqcopy = {%$req}; #deep copy
$reqcopy->{'_xcatdest'} = $dhcps;
if ($dhcps ne "<xcatmaster>") {
$reqcopy->{'_xcatdest'} = $dhcps;
}
$reqcopy->{node} = [ keys %localnodehash ];
if (scalar(@{ $reqcopy->{node} })) { push @requests, $reqcopy }
}