diff --git a/lib/puppet/provider/sysctl/augeas.rb b/lib/puppet/provider/sysctl/augeas.rb index be00a4b..4a020df 100644 --- a/lib/puppet/provider/sysctl/augeas.rb +++ b/lib/puppet/provider/sysctl/augeas.rb @@ -189,9 +189,6 @@ def create value = resource[:value] || resource[:val] augopen! do |aug| - # Prefer to create the node next to a commented out entry - commented = aug.match("$target/#comment[.=~regexp('#{resource[:name]}([^a-z\.].*)?')]") - aug.insert(commented.first, resource[:name], false) unless commented.empty? aug.set(resource_path, value) setvars(aug) end