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
This commit is contained in:
lissav 2012-02-06 12:53:26 +00:00
parent 9a240aa3a5
commit a1e4faa966

View File

@ -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];
}