guests/linux: Style update for choose_addressable_ip

This commit is contained in:
Seth Vargo 2016-07-13 10:01:17 -06:00
parent e2becda89d
commit 1c0d0b8b9d
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
1 changed files with 2 additions and 3 deletions

View File

@ -6,13 +6,12 @@ module VagrantPlugins
comm = machine.communicate comm = machine.communicate
possible.each do |ip| possible.each do |ip|
command = "ping -c1 -w1 -W1 #{ip}" if comm.test("ping -c1 -w1 -W1 #{ip}")
if comm.test(command)
return ip return ip
end end
end end
nil return nil
end end
end end
end end