From da7b076b87dd8f427a38b430b61838711893fbba Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Jul 2009 15:20:15 +0000 Subject: [PATCH] update with use of _xcatpreprocessed git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3793 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/vbox.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/vbox.pm b/xCAT-server/lib/xcat/plugins/vbox.pm index 4b58299ae..2370e4aeb 100644 --- a/xCAT-server/lib/xcat/plugins/vbox.pm +++ b/xCAT-server/lib/xcat/plugins/vbox.pm @@ -54,7 +54,8 @@ 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 $nodes = $req->{node}; my $service = "xcat"; @@ -73,6 +74,7 @@ sub preprocess_request my $reqcopy = {%$req}; $reqcopy->{node} = $sn->{$snkey}; $reqcopy->{'_xcatdest'} = $snkey; + $reqcopy->{_xcatpreprocessed}->[0] = 1; push @requests, $reqcopy; }