Fix a FrozenError in prepare_nfs_settings.rb (#1392)

This commit is contained in:
rledisez 2021-11-03 08:01:09 -04:00 committed by GitHub
parent 334661497c
commit b475293fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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