From d8f4857189d23da4f1cd95f5dec2eb3e7ef30f6d Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Jul 2009 15:23:35 +0000 Subject: [PATCH] update with use of _xcatpreprocessed git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/networks.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/networks.pm b/xCAT-server/lib/xcat/plugins/networks.pm index 7736c7b54..c1f32ebf5 100644 --- a/xCAT-server/lib/xcat/plugins/networks.pm +++ b/xCAT-server/lib/xcat/plugins/networks.pm @@ -15,13 +15,15 @@ sub preprocess_request { my $req = shift; my $cb = shift; - if ($req->{_xcatdest}) { return [$req]; } #exit if preprocessed + if ($req->{_xcatpreprocessed}->[0] == 1) { return [$req]; } + # exit if preprocessed my @requests = ({%$req}); #first element is local instance my @sn = xCAT::Utils->getSNList(); foreach my $s (@sn) { my $reqcopy = {%$req}; $reqcopy->{'_xcatdest'} = $s; + $reqcopy->{_xcatpreprocessed}->[0] = 1; push @requests, $reqcopy; } return \@requests;