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
|
||||
|
||||
possible.each do |ip|
|
||||
command = "ping -c1 -w1 -W1 #{ip}"
|
||||
if comm.test(command)
|
||||
if comm.test("ping -c1 -w1 -W1 #{ip}")
|
||||
return ip
|
||||
end
|
||||
end
|
||||
|
||||
nil
|
||||
return nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue