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
This commit is contained in:
lissav 2009-07-15 15:20:15 +00:00
parent 00bf96a52f
commit da7b076b87

View File

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