client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 510a30175ec99a524e63d625c7e356c761d75eeb
Author: Tomas Lestach <tlestach(a)redhat.com>
Date: Thu Jul 7 11:53:10 2011 +0200
691417 - allow extra whitespace behing nameserver IP in resolv.conf
diff --git a/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
b/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
index 0b25e53..d3c9706 100644
--- a/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
+++ b/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
@@ -52,7 +52,7 @@ def find_ip(device):
return execute("ifconfig %s | perl -lne '/inet addr:([\d.]+)/ and print
$1'" % device)[0]
def find_name_servers():
- servers = execute("cat /etc/resolv.conf | perl -lne '/^nameserver\s+(\S+)$/
and print $1'")
+ servers = execute("cat /etc/resolv.conf | perl -lne '/^nameserver\s+(\S+)/
and print $1'")
ret = []
for s in servers:
if s != "127.0.0.1":
Show replies by date