From d97e54f897aa4034a603952b7bfc113f312520a3 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Jul 2009 15:35:05 +0000 Subject: [PATCH] update with use of _xcatpreprocessed git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3796 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xcat2nim.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/xcat2nim.pm b/xCAT-server/lib/xcat/plugins/xcat2nim.pm index af6c5e837..a5e09d978 100644 --- a/xCAT-server/lib/xcat/plugins/xcat2nim.pm +++ b/xCAT-server/lib/xcat/plugins/xcat2nim.pm @@ -77,7 +77,8 @@ sub preprocess_request my $req = shift; my $cb = shift; my %sn; - if ($req->{_xcatdest}) { return [$req]; } #exit if preprocessed + if ($req->{_xcatpreprocessed}->[0] == 1) { return [$req]; } + #exit if preprocessed my $nodes = $req->{node}; # this may not be the list of nodes we need! my $command = $req->{command}->[0]; $::args = $req->{arg}; @@ -108,6 +109,7 @@ sub preprocess_request my $reqcopy = {%$req}; $reqcopy->{node} = $sn->{$snkey}; $reqcopy->{'_xcatdest'} = $snkey; + $reqcopy->{_xcatpreprocessed}->[0] = 1; push @requests, $reqcopy; }