diff --git a/lib/vagrant-hostmanager/hosts_file.rb b/lib/vagrant-hostmanager/hosts_file.rb index 71b4e05..e7f0f80 100644 --- a/lib/vagrant-hostmanager/hosts_file.rb +++ b/lib/vagrant-hostmanager/hosts_file.rb @@ -107,8 +107,8 @@ module VagrantPlugins next if ip end end - end - ip || (machine.ssh_info ? machine.ssh_info[:host] : nil) + ip || (machine.ssh_info ? machine.ssh_info[:host] : nil) + end end def get_machines