From 3e8edef7dc2e5bf7543a88bc5301b0a19f999657 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 23 Feb 2018 16:00:58 -0500 Subject: [PATCH] Recognize in dhcp The recent change failed to treat special. --- xCAT-server/lib/xcat/plugins/dhcp.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index ab73461ec..503d1e7fe 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -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 "") { + $reqcopy->{'_xcatdest'} = $dhcps; + } $reqcopy->{node} = [ keys %localnodehash ]; if (scalar(@{ $reqcopy->{node} })) { push @requests, $reqcopy } }