voxpupuli / puppet-grafana

Puppet module to manage Grafana
Apache License 2.0
15 stars 106 forks source link

`grafana_folder` `permissions` not idempotent #304

Closed alexjfisher closed 1 year ago

alexjfisher commented 1 year ago

In version 9 of grafana, it looks like the API can return the folder permissions in an order that doesn't match what the Puppet code is expecting.

eg.

permissions changed [
    {
      'role' => 'Viewer',
      'permission' => 1
    },
    {
      'role' => 'Editor',
      'permission' => 2
    }] to [
    {
      'permission' => 2,
      'role' => 'Editor'
    },
    {
      'permission' => 1,
      'role' => 'Viewer'
    }]

These permissions are obviously the same and Puppet doesn't need to update them.