From 1c0d0b8b9dc7c53dd13524eddf1c6cf4301b71c9 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Wed, 13 Jul 2016 10:01:17 -0600 Subject: [PATCH] guests/linux: Style update for choose_addressable_ip --- plugins/guests/linux/cap/choose_addressable_ip_addr.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/guests/linux/cap/choose_addressable_ip_addr.rb b/plugins/guests/linux/cap/choose_addressable_ip_addr.rb index 2ae94185d..2d889ee54 100644 --- a/plugins/guests/linux/cap/choose_addressable_ip_addr.rb +++ b/plugins/guests/linux/cap/choose_addressable_ip_addr.rb @@ -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