From 50c5175b3dc8e2f1cbaac952a85d89b0a08a9dba Mon Sep 17 00:00:00 2001 From: linggao Date: Wed, 18 May 2011 18:23:56 +0000 Subject: [PATCH] fixed error intruduced by revision 9621 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9631 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 157efdd70..fb606a81a 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -630,11 +630,11 @@ sub preprocess_request $snonly=$href->{value}; } } - my @requests=(); my $hasHierarchy=0; - if (($snonly == 1) && (! grep /-n/,@{$req->{arg}})) { - my @nodes=(); + + my @nodes=(); + if (! grep /-n/,@{$req->{arg}}) { if ($req->{node}) { @nodes=@{$req->{node}}; } @@ -661,7 +661,10 @@ sub preprocess_request } } } + } + #print "nodes=@nodes\n"; + if (($snonly == 1) && (! grep /-n/,@{$req->{arg}})) { if (@nodes > 0) { my $sn_hash =xCAT::Utils->getSNformattedhash(\@nodes,"xcat","MN"); if ($localonly) {