client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 316724c82f28664057581b816e4a0422a927855b
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Wed Sep 7 10:49:30 2011 +0200
736066 - parse ifconfig output in POSIX locale only
diff --git a/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
b/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
index d3c9706..be0eac0 100644
--- a/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
+++ b/client/tools/spacewalk-koan/spacewalkkoan/spacewalkkoan.py
@@ -46,10 +46,10 @@ def find_host_name():
return execute("hostname")[0]
def find_netmask(device):
- return execute("ifconfig %s | perl -lne '/Mask:([\d.]+)/ and print
$1'" % device)[0]
+ return execute("LANG=C ifconfig %s | perl -lne '/Mask:([\d.]+)/ and print
$1'" % device)[0]
def find_ip(device):
- return execute("ifconfig %s | perl -lne '/inet addr:([\d.]+)/ and print
$1'" % device)[0]
+ return execute("LANG=C 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'")
Show replies by date