Skip to content

Commit

Permalink
Fix sorting for folder permissioins
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Feb 2, 2024
1 parent a98b003 commit f9c6241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/type/grafana_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
newproperty(:permissions, array_matching: :all) do
desc 'The permissions of the folder'
def insync?(is)
is.sort_by { |k| [k['permission'], k['role'], k['teamId']] } == should.sort_by { |k| [k['permission'], k['role'], k['teamId']] }
is.sort_by { |k| [k['permission'].to_i, k['role'].to_i, k['teamId'].to_i] } == should.sort_by { |k| [k['permission'].to_i, k['role'].to_i, k['teamId'].to_i] }
end
end

Expand Down

0 comments on commit f9c6241

Please sign in to comment.