diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index ad62a6b98..a7001f62e 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -364,8 +364,9 @@ sub process_request INTF: foreach $dhcpif (split /;/,$dhcpinterfaces) { my $host; my $savehost; - my $foundself; + my $foundself=1; if ($dhcpif =~ /\|/) { + $foundself=0; (my $ngroup,$dhcpif) = split /\|/,$dhcpif; foreach $host (noderange($ngroup)) {