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 } }