From 19d754921026204fef9430a40d6f82c7f749c081 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Jul 2009 15:39:16 +0000 Subject: [PATCH] update with use of _xcatpreprocessed in commented out example git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3797 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/pxe.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/pxe.pm b/xCAT-server/lib/xcat/plugins/pxe.pm index 6c3d8bc76..ca127f466 100644 --- a/xCAT-server/lib/xcat/plugins/pxe.pm +++ b/xCAT-server/lib/xcat/plugins/pxe.pm @@ -240,7 +240,7 @@ sub preprocess_request { #sub preprocess_request { # my $req = shift; # $callback = shift; -# if ($req->{_xcatdest}) { return [$req]; } #Exit if the packet has been preprocessed in its history +# if ($req->{_xcatpreprocessed}->[0] == 1) { return [$req]; } # my @requests = ({%$req}); #Start with a straight copy to reflect local instance # my $sitetab = xCAT::Table->new('site'); # (my $ent) = $sitetab->getAttribs({key=>'xcatservers'},'value'); @@ -250,6 +250,7 @@ sub preprocess_request { # if (xCAT::Utils->thishostisnot($_)) { # my $reqcopy = {%$req}; # $reqcopy->{'_xcatdest'} = $_; +# $reqcopy->{_xcatpreprocessed}->[0] = 1; # push @requests,$reqcopy; # } # }