From 13e2dbaf9d1a63ebbb7d11b4e844cab2f36d5bfc Mon Sep 17 00:00:00 2001 From: aidanhs Date: Sat, 11 Jul 2015 19:15:54 +0100 Subject: [PATCH] Fix setting hostname in 12.04 Fixes #5934 --- 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 2519914fc..706d4850a 100644 --- a/plugins/guests/ubuntu/cap/change_host_name.rb +++ b/plugins/guests/ubuntu/cap/change_host_name.rb @@ -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