mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Merge pull request #667 from go2sh/issue-666
Fixes locale problem with ifconfig in setup module
This commit is contained in:
commit
e4afa83b82
1 changed files with 1 additions and 1 deletions
|
@ -455,7 +455,7 @@ class LinuxNetwork(Network):
|
||||||
for iface in self.facts['interfaces']:
|
for iface in self.facts['interfaces']:
|
||||||
# This is lame, but there doesn't appear to be a good way
|
# This is lame, but there doesn't appear to be a good way
|
||||||
# to get all addresses for both IPv4 and IPv6.
|
# 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)
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
out, err = cmd.communicate()
|
out, err = cmd.communicate()
|
||||||
for line in out.split('\n'):
|
for line in out.split('\n'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue