From ab8a36686e60b645a1c37b254f070cfdb8e349dd Mon Sep 17 00:00:00 2001 From: Christoph Seitz Date: Tue, 24 Jul 2012 11:10:11 +0200 Subject: [PATCH] Fixes locale problem with ifconfig in setup module --- library/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/setup b/library/setup index e28d69791a..6a5fb9b91d 100755 --- a/library/setup +++ b/library/setup @@ -455,7 +455,7 @@ class LinuxNetwork(Network): for iface in self.facts['interfaces']: # This is lame, but there doesn't appear to be a good way # to get all addresses for both IPv4 and IPv6. - cmd = subprocess.Popen("/sbin/ifconfig %s" % iface, shell=True, + cmd = subprocess.Popen("env LANG=\"\" /sbin/ifconfig %s" % iface, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = cmd.communicate() for line in out.split('\n'):