fixing error in comment #2333

This commit is contained in:
elliotsegler 2013-11-23 10:18:59 +08:00
parent a80de51054
commit 803e78a5d4
1 changed files with 1 additions and 1 deletions

View File

@ -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