From a1e4faa9668ac0651da4caf075c22a1a6181777a Mon Sep 17 00:00:00 2001
From: lissav <lissav@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd>
Date: Mon, 6 Feb 2012 12:53:26 +0000
Subject: [PATCH] add check for request processed

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11487 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
---
 xCAT-server/lib/xcat/plugins/rollupdate.pm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/xCAT-server/lib/xcat/plugins/rollupdate.pm b/xCAT-server/lib/xcat/plugins/rollupdate.pm
index a687de5b2..b21b44932 100644
--- a/xCAT-server/lib/xcat/plugins/rollupdate.pm
+++ b/xCAT-server/lib/xcat/plugins/rollupdate.pm
@@ -107,9 +107,14 @@ sub preprocess_request {
     #   get sent up to the MN
 
     my $req = shift;
-    unless ( defined( $req->{_xcatdest} ) ) {
-        $req->{_xcatdest} = xCAT::Utils->get_site_Master();
+     #if already preprocessed, go straight to request
+    if (   (defined($req->{_xcatpreprocessed}))
+        && ($req->{_xcatpreprocessed}->[0] == 1))
+    {
+        return [$req];
     }
+
+    $req->{_xcatdest} = xCAT::Utils->get_site_Master();
     return [$req];
 }