From c4e00dbc54bfc8bcd4fc98f090034828f874c66d Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 17 May 2011 19:04:13 +0000 Subject: [PATCH] -Make an effort to at least filter out a service node making dhcp definitions for itself locally git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9621 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index c1d6a7a64..157efdd70 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -699,6 +699,7 @@ sub preprocess_request foreach my $s (@sn) { + if (scalar @nodes == 1 and $nodes[0] eq $s) { next; } my $reqcopy = {%$req}; $reqcopy->{'_xcatdest'} = $s; $reqcopy->{_xcatpreprocessed}->[0] = 1;