From 803e78a5d47b032d86c2b7d69647fe5674982e25 Mon Sep 17 00:00:00 2001 From: elliotsegler Date: Sat, 23 Nov 2013 10:18:59 +0800 Subject: [PATCH] fixing error in comment #2333 --- plugins/guests/ubuntu/cap/change_host_name.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/ubuntu/cap/change_host_name.rb b/plugins/guests/ubuntu/cap/change_host_name.rb index 85d61eea9..9eef21756 100644 --- a/plugins/guests/ubuntu/cap/change_host_name.rb +++ b/plugins/guests/ubuntu/cap/change_host_name.rb @@ -20,7 +20,7 @@ module VagrantPlugins comm.sudo("sed -i 's/.*$/#{name.split('.')[0]}/' /etc/hostname") # hosts should resemble: - # 127.0.0.1 localhost host.fqdn.com host + # 127.0.0.1 localhost # 127.0.1.1 host.fqdn.com host if name.split('.').length > 1 # if there's an FQDN, put it in the right format