Skip to content

Commit

Permalink
Merge pull request #58 from ekohl/fix-regression
Browse files Browse the repository at this point in the history
Remove old arguments to augopen_internal
  • Loading branch information
bastelfreak authored Jul 11, 2023
2 parents 4780ac2 + d949fa5 commit 8267157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/augeasprovider/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def self.augclose!(aug)
# @raise [Puppet::Error] if Augeas did not load the file
# @api public
def self.augopen(resource = nil, yield_resource = false, *yield_params, &block)
augopen_internal(resource, false, yield_resource, *yield_params, &block)
augopen_internal(resource, yield_resource, *yield_params, &block)
end

# Opens Augeas and returns a handle to use. It loads only the file
Expand All @@ -121,7 +121,7 @@ def self.augopen(resource = nil, yield_resource = false, *yield_params, &block)
# @raise [Puppet::Error] if Augeas did not load the file
# @api public
def self.augopen!(resource = nil, yield_resource = false, *yield_params, &block)
augopen_internal(resource, true, yield_resource, *yield_params, &block)
augopen_internal(resource, yield_resource, *yield_params, &block)
end

# Saves all changes made in the current Augeas handle and checks for any
Expand Down

0 comments on commit 8267157

Please sign in to comment.