From db958dfd67db78da48a2005d10ed2a26de337843 Mon Sep 17 00:00:00 2001 From: Matthew Hopkins Date: Mon, 9 Jun 2014 16:50:23 -0400 Subject: [PATCH] splits hostnames across many lines, as Windows doesn't seem to like more than 8 on a line --- lib/vagrant-hostmanager/hosts_file.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-hostmanager/hosts_file.rb b/lib/vagrant-hostmanager/hosts_file.rb index e931621..6934a5d 100644 --- a/lib/vagrant-hostmanager/hosts_file.rb +++ b/lib/vagrant-hostmanager/hosts_file.rb @@ -83,9 +83,9 @@ module VagrantPlugins def get_hosts_file_entry(machine, resolving_machine) ip = get_ip_address(machine, resolving_machine) host = machine.config.vm.hostname || machine.name - aliases = machine.config.hostmanager.aliases.join(' ').chomp + aliases = machine.config.hostmanager.aliases if ip != nil - "#{ip}\t#{host} #{aliases}\n" + "#{ip}\t#{host}\n" + aliases.map{|a| "#{ip}\t#{a}"}.join("\n") + "\n" end end