From 64fd1fb97d9ffc101a2121b083878182fa6f4516 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 15 Sep 2009 09:05:36 +0000 Subject: [PATCH] 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 --- xCAT-server/sbin/xcatconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 1ef37a8ad..fe7f8d4b8 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -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";