File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments