Fix setting hostname in 12.04

Fixes #5934
This commit is contained in:
aidanhs 2015-07-11 19:15:54 +01:00
parent 7743b8314d
commit 13e2dbaf9d
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module VagrantPlugins
end
def update_etc_hostname
super unless vivid?
return super unless vivid?
sudo("hostnamectl set-hostname '#{short_hostname}'")
end