Skip to content

Commit

Permalink
Fix grafana_folder permissions idempotency
Browse files Browse the repository at this point in the history
fixes #304
  • Loading branch information
alexjfisher committed Oct 12, 2022
1 parent 13fbca7 commit 11d432e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puppet/type/grafana_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@

newproperty(:permissions, array_matching: :all) do
desc 'The permissions of the folder'
def insync?(is)
is.sort_by { |k| k['permission'] } == should.sort_by { |k| k['permission'] }
end
end

autorequire(:service) do
Expand Down

0 comments on commit 11d432e

Please sign in to comment.