mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-14 18:30:23 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user