Skip to content

Commit

Permalink
Merge pull request #315 from voxpupuli/access
Browse files Browse the repository at this point in the history
Fix purging puppet resource openldap_access
  • Loading branch information
bastelfreak authored Sep 14, 2021
2 parents 957eec4 + d3f34e3 commit f689876
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/puppet/provider/openldap_access/olc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def self.instances
false
end
i << new(
name: "{#{position}}to #{what} #{access.join(' ')} on #{suffix}",
name: "#{position} on #{suffix}",
ensure: :present,
position: position,
what: what,
Expand Down Expand Up @@ -108,9 +108,7 @@ def getDn(*args)
end

def exists?
resource[:suffix] == (@property_hash[:suffix]) &&
resource[:access].flatten == @property_hash[:access].flatten &&
resource[:what] == (@property_hash[:what])
@property_hash[:ensure] == :present
end

def create
Expand Down

0 comments on commit f689876

Please sign in to comment.