Skip to content

Commit

Permalink
Remove logic breaking comment updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
montaguethomas authored Jun 8, 2023
1 parent 78c2bcb commit 4a8f60f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/puppet/provider/sysctl/augeas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a8f60f

Please sign in to comment.