mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Fix a FrozenError in prepare_nfs_settings.rb (#1392)
This commit is contained in:
parent
334661497c
commit
b475293fe9
@ -59,7 +59,7 @@ module VagrantPlugins
|
||||
command = "ip=$(which ip); ${ip:-/sbin/ip} addr show | grep -i 'inet ' | grep -v '127.0.0.1' | tr -s ' ' | cut -d' ' -f3 | cut -d'/' -f 1"
|
||||
result = ''
|
||||
machine.communicate.execute(command) do |type, data|
|
||||
result << data if type == :stdout
|
||||
result += data if type == :stdout
|
||||
end
|
||||
|
||||
ips = result.chomp.split("\n").uniq
|
||||
|
Loading…
Reference in New Issue
Block a user