update to use _xcatpreprocessed variable
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3804 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4745d80859
commit
c9ba3224f1
@ -7,12 +7,14 @@ sub get_broadcast_scope {
|
||||
$req = shift;
|
||||
}
|
||||
$callback = shift;
|
||||
if ($req->{_xcatdest}) { return [$req]; } #Exit if the packet has been preprocessed in its history
|
||||
if ($req->{_xcatpreprocessed}->[0] == 1) { return [$req]; }
|
||||
#Exit if the packet has been preprocessed in its history
|
||||
my @requests = ({%$req}); #Start with a straight copy to reflect local instance
|
||||
foreach (xCAT::Utils->getSNList()) {
|
||||
if (xCAT::Utils->thishostisnot($_)) {
|
||||
my $reqcopy = {%$req};
|
||||
$reqcopy->{'_xcatdest'} = $_;
|
||||
$reqcopy->{_xcatpreprocessed}->[0] = 1;
|
||||
push @requests,$reqcopy;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user