guests/linux: LANG=en for ifconfig [GH-3029]
This commit is contained in:
parent
35b33ad581
commit
04369b3afe
|
@ -75,6 +75,8 @@ BUG FIXES:
|
||||||
- commands/rsync-auto: Interrupt exits properly. [GH-3552]
|
- commands/rsync-auto: Interrupt exits properly. [GH-3552]
|
||||||
- commands/rsync-auto: Run properly on Windows. [GH-3547]
|
- commands/rsync-auto: Run properly on Windows. [GH-3547]
|
||||||
- communicators/ssh: Detect if `config.ssh.shell` is invalid. [GH-3040]
|
- communicators/ssh: Detect if `config.ssh.shell` is invalid. [GH-3040]
|
||||||
|
- guests/linux: For `read_ip_address` capability, set `LANG=en` so
|
||||||
|
it works on international systems. [GH-3029]
|
||||||
- providers/virtualbox: VirtalBox detection works properly again on
|
- providers/virtualbox: VirtalBox detection works properly again on
|
||||||
Windows when the `VBOX_INSTALL_PATH` has multiple elements. [GH-3549]
|
Windows when the `VBOX_INSTALL_PATH` has multiple elements. [GH-3549]
|
||||||
- providers/virtualbox: Forcing MAC address on private network works
|
- providers/virtualbox: Forcing MAC address on private network works
|
||||||
|
|
|
@ -3,7 +3,7 @@ module VagrantPlugins
|
||||||
module Cap
|
module Cap
|
||||||
class ReadIPAddress
|
class ReadIPAddress
|
||||||
def self.read_ip_address(machine)
|
def self.read_ip_address(machine)
|
||||||
command = "ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1 }'"
|
command = "LANG=en ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1 }'"
|
||||||
result = ""
|
result = ""
|
||||||
machine.communicate.execute(command) do |type, data|
|
machine.communicate.execute(command) do |type, data|
|
||||||
result << data if type == :stdout
|
result << data if type == :stdout
|
||||||
|
|
Loading…
Reference in New Issue