diff --git a/CHANGES.rst b/CHANGES.rst index 431e351..0324a79 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,6 +18,7 @@ in progress - Tests: Make test case for `explore datasources` use _two_ data sources - Tests: Mimic Grafana 7/8 on datasource references within dashboards, newer versions have objects (uid, type) instead of bare names +- Fix implementation flaw reported at #32. Thanks, @IgorOhrimenko and @carpenterbees! 2022-02-03 0.13.1 diff --git a/grafana_wtf/core.py b/grafana_wtf/core.py index 33e0ac5..6e7eae6 100644 --- a/grafana_wtf/core.py +++ b/grafana_wtf/core.py @@ -495,7 +495,7 @@ def collect_datasource_items(element): ds = dict(ds) if ds not in items: items.append(ds) - return sorted(items) + return items def index_dashboards(self):