Skip to content

Commit 25d5df5

Browse files
committed
Fix concurrency check to include cache attribute in Grafana client to fix segmentation fault
1 parent 9754d16 commit 25d5df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grafana_wtf/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def scan_dashboards(self, dashboard_uids=None):
223223
if self.progressbar:
224224
self.start_progressbar(len(self.data.dashboard_list))
225225

226-
if self.concurrency is None or self.concurrency <= 1:
226+
if self.concurrency is None or self.concurrency <= 1 or hasattr(self.grafana.client.s, "cache"):
227227
self.fetch_dashboards()
228228
else:
229229
self.fetch_dashboards_parallel()

0 commit comments

Comments
 (0)