From 5a3cd7d7f6868d9bbe164d2fc08fb79315b42b44 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Jul 2009 14:36:56 +0000 Subject: [PATCH] update with use of _xcatpreprocessed git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3786 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/dhcp.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/dhcp.pm b/xCAT-server/lib/xcat/plugins/dhcp.pm index 0d0824fc0..3d9441cbb 100644 --- a/xCAT-server/lib/xcat/plugins/dhcp.pm +++ b/xCAT-server/lib/xcat/plugins/dhcp.pm @@ -419,10 +419,9 @@ sub preprocess_request @ARGV = @{$req->{arg}}; GetOptions('l' => \$localonly); } - if ($req->{_xcatdest}) - { - return [$req]; - } #Exit if the packet has been preprocessed in its history + #Exit if the packet has been preprocessed + if ($req->{_xcatpreprocessed}->[0] == 1) { return [$req]; } + my @requests = ({%$req}); #Start with a straight copy to reflect local instance unless ($localonly) { @@ -431,6 +430,7 @@ sub preprocess_request { my $reqcopy = {%$req}; $reqcopy->{'_xcatdest'} = $s; + $reqcopy->{_xcatpreprocessed}->[0] = 1; push @requests, $reqcopy; } }