guests/linux: Style update for choose_addressable_ip
This commit is contained in:
parent
e2becda89d
commit
1c0d0b8b9d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue