Generic white space strip from command strings

This commit is contained in:
Chris Roberts 2016-10-07 17:30:27 -07:00
parent c6a32042c8
commit d178631ff9
1 changed files with 2 additions and 2 deletions

View File

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