mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-10 01:00:04 -04:00
parent
00f1e46777
commit
5f383b546c
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ module VagrantPlugins
|
|||
def self.read_ip_address(machine)
|
||||
command = "LANG=en ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1 }'"
|
||||
result = ""
|
||||
machine.communicate.execute(command) do |type, data|
|
||||
machine.communicate.sudo(command) do |type, data|
|
||||
result << data if type == :stdout
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue