From 680c49235aa4c15e8e0dd6b3b08887bdd87a7311 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 15 Jul 2009 15:53:42 +0000 Subject: [PATCH] update with use of _xcatpreprocessed git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3798 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xen.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/xen.pm b/xCAT-server/lib/xcat/plugins/xen.pm index 3556197e0..287580666 100644 --- a/xCAT-server/lib/xcat/plugins/xen.pm +++ b/xCAT-server/lib/xcat/plugins/xen.pm @@ -568,7 +568,9 @@ sub guestcmd { sub preprocess_request { my $request = shift; - if ($request->{_xcatdest}) { return [$request]; } #exit if preprocessed + #if already preprocessed, go straight to request + if ($request->{_xcatpreprocessed}->[0] == 1) { return [$request]; } + my $callback=shift; my @requests; @@ -609,6 +611,8 @@ sub preprocess_request { my $reqcopy = {%$request}; $reqcopy->{node} = $sn->{$snkey}; $reqcopy->{'_xcatdest'} = $snkey; + $reqcopy->{_xcatpreprocessed}->[0] = 1; + push @requests, $reqcopy; } return \@requests;