fix for bug 2836101: error nameservers information in table site

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4135 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2009-09-15 09:05:36 +00:00
parent 816a852d49
commit 64fd1fb97d

View File

@ -1410,7 +1410,7 @@ sub makenetworks
# set the nameserver in the site table
my @names =
xCAT::Utils->runcmd(
"/bin/grep nameserver /etc/resolv.conf | cut -d' ' -f 2",
"/bin/grep ^[^#]*nameserver /etc/resolv.conf | awk '{print \$2}'",
0);
my $ns = join(',', @names);
my $cmd = "$::XCATROOT/sbin/chtab key=nameservers site.value=$ns";