2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

Merge pull request #247 from loz-hurst/master

Stop repeating domains in domain-search
This commit is contained in:
Xiaopeng Wang
2015-11-05 14:50:09 +08:00

View File

@@ -1490,9 +1490,9 @@ sub process_request
# - include the site domain - if any
my $nettab = xCAT::Table->new("networks");
my @doms = $nettab->getAllAttribs('domain');
foreach(@doms){
if ($_->{domain}) {
push (@alldomains, $_->{domain});
foreach my $netdom (@doms){
if ($netdom->{domain}) {
push (@alldomains, $netdom->{domain}) unless grep(/^$netdom->{domain}$/, @alldomains);
}
}
$nettab->close;