defect 2935401: fix the defect that write the nameserver attribute with wrong format
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4995 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f25211855a
commit
f678701ed5
@ -277,11 +277,14 @@ sub donets
|
||||
close($rconf);
|
||||
foreach (grep /nameserver/, @rcont)
|
||||
{
|
||||
my $line = $_;
|
||||
my @pair;
|
||||
$line =~ s/#.*//;
|
||||
@pair = split(/\s+/, $line);
|
||||
push @nameservers, $pair[1];
|
||||
my $line = $_;
|
||||
my @pair;
|
||||
$line =~ s/#.*//;
|
||||
$line =~ s/^\s*//;
|
||||
@pair = split(/\s+/, $line);
|
||||
if ($pair[0] eq 'nameserver' && $pair[1] ne '') {
|
||||
push @nameservers, $pair[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
splice @rtable, 0, 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user