Notice: /Stage[main]/Main/Grafana_datasource[Foo]/ensure: created
Notice: /Stage[main]/Main/Grafana_datasource[Bar]/ensure: created
Unlike https://github.com/voxpupuli/puppet-grafana/issues/289, the provider does not see an existing datasource at all. This is because the API call in datasource_by_name only returns datasources for the current organization, but said method does not switch the current organization as flush does.
Given
Puppet "creates" those resources on every run.
Unlike https://github.com/voxpupuli/puppet-grafana/issues/289, the provider does not see an existing datasource at all. This is because the API call in
datasource_by_name
only returns datasources for the current organization, but said method does not switch the current organization asflush
does.