From d178631ff95bc07701fcabcfa33ad11eb9ab7ba3 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Fri, 7 Oct 2016 17:30:27 -0700 Subject: [PATCH] Generic white space strip from command strings --- plugins/guests/redhat/cap/configure_networks.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/guests/redhat/cap/configure_networks.rb b/plugins/guests/redhat/cap/configure_networks.rb index d96e27e20..04b49ab92 100644 --- a/plugins/guests/redhat/cap/configure_networks.rb +++ b/plugins/guests/redhat/cap/configure_networks.rb @@ -36,7 +36,7 @@ module VagrantPlugins # Add the new interface and bring it back up final_path = "#{network_scripts_dir}/ifcfg-#{network[:device]}" - commands << <<-EOH.gsub(/^ {14}/, '') + commands << <<-EOH.gsub(/^ */, '') # Down the interface before munging the config file. This might # fail if the interface is not actually set up yet so ignore # errors. @@ -50,7 +50,7 @@ module VagrantPlugins EOH end - commands << <<-EOH.gsub(/^ {14}/, '') + commands << <<-EOH.gsub(/^ */, '') # Restart network service network restart EOH