Generic white space strip from command strings
This commit is contained in:
parent
c6a32042c8
commit
d178631ff9
|
@ -36,7 +36,7 @@ module VagrantPlugins
|
||||||
|
|
||||||
# Add the new interface and bring it back up
|
# Add the new interface and bring it back up
|
||||||
final_path = "#{network_scripts_dir}/ifcfg-#{network[:device]}"
|
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
|
# Down the interface before munging the config file. This might
|
||||||
# fail if the interface is not actually set up yet so ignore
|
# fail if the interface is not actually set up yet so ignore
|
||||||
# errors.
|
# errors.
|
||||||
|
@ -50,7 +50,7 @@ module VagrantPlugins
|
||||||
EOH
|
EOH
|
||||||
end
|
end
|
||||||
|
|
||||||
commands << <<-EOH.gsub(/^ {14}/, '')
|
commands << <<-EOH.gsub(/^ */, '')
|
||||||
# Restart network
|
# Restart network
|
||||||
service network restart
|
service network restart
|
||||||
EOH
|
EOH
|
||||||
|
|
Loading…
Reference in New Issue