From 19aa9578c797c99a8632955a703490d5e6b50a26 Mon Sep 17 00:00:00 2001 From: Joe Doss Date: Tue, 18 Sep 2018 13:15:26 -0500 Subject: [PATCH] Exit 1 if we cannot set the hostname. --- plugins/guests/redhat/cap/change_host_name.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/guests/redhat/cap/change_host_name.rb b/plugins/guests/redhat/cap/change_host_name.rb index 70bd49694..ae0246015 100644 --- a/plugins/guests/redhat/cap/change_host_name.rb +++ b/plugins/guests/redhat/cap/change_host_name.rb @@ -35,6 +35,7 @@ module VagrantPlugins service network restart else printf "Could not restart the network to set the new hostname!\n" + exit 1 fi EOH end