summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/route.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/route.rb b/lib/chef/provider/route.rb
index 8a304a7e45..614d56aa22 100644
--- a/lib/chef/provider/route.rb
+++ b/lib/chef/provider/route.rb
@@ -188,8 +188,8 @@ class Chef
logger.trace("#{new_resource} writing default route #{new_resource.gateway} to #{network_file_name}")
if ::File.exist?(network_file_name)
network_file = ::Chef::Util::FileEdit.new(network_file_name)
- network_file.search_file_replace_line /^GATEWAY=/, "GATEWAY=#{new_resource.gateway}"
- network_file.insert_line_if_no_match /^GATEWAY=/, "GATEWAY=#{new_resource.gateway}"
+ network_file.search_file_replace_line(/^GATEWAY=/, "GATEWAY=#{new_resource.gateway}")
+ network_file.insert_line_if_no_match(/^GATEWAY=/, "GATEWAY=#{new_resource.gateway}")
network_file.write_file
else
network_file = ::File.new(network_file_name, "w")