Skip to content

Commit dfdea75

Browse files
committed
Revert "Improve fetch_dashboard vs. fetch_dashboards"
This reverts commit 73ae808.
1 parent d06200b commit dfdea75

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

grafana_wtf/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,16 @@ def handle_grafana_error(self, ex):
254254
def fetch_dashboard(self, dashboard_info):
255255
log.debug(f'Fetching dashboard "{dashboard_info["title"]}" ({dashboard_info["uid"]})')
256256
dashboard = self.grafana.dashboard.get_dashboard(dashboard_info["uid"])
257-
if dashboard_info.get("type") != "dash-folder":
258-
self.data.dashboards.append(dashboard)
257+
self.data.dashboards.append(dashboard)
259258
if self.taqadum is not None:
260259
self.taqadum.update(1)
261260

262261
def fetch_dashboards(self):
263262
log.info("Fetching dashboards one by one")
264263
results = self.data.dashboard_list
265264
for dashboard_info in results:
265+
if dashboard_info.get("type") == "dash-folder":
266+
continue
266267
self.fetch_dashboard(dashboard_info)
267268

268269
def fetch_dashboards_parallel(self):

0 commit comments

Comments
 (0)