update with use of _xcatpreprocessed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
da7b076b87
commit
d8f4857189
@ -15,13 +15,15 @@ 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 @requests = ({%$req}); #first element is local instance
|
||||
my @sn = xCAT::Utils->getSNList();
|
||||
foreach my $s (@sn)
|
||||
{
|
||||
my $reqcopy = {%$req};
|
||||
$reqcopy->{'_xcatdest'} = $s;
|
||||
$reqcopy->{_xcatpreprocessed}->[0] = 1;
|
||||
push @requests, $reqcopy;
|
||||
}
|
||||
return \@requests;
|
||||
|
Loading…
Reference in New Issue
Block a user