Skip to content

Commit cf70efa

Browse files
committed
Fix: folderIds=0 at get_all_folder_ids_and_names
Fixes #125 by simple way the folderIds=0 must be replaced to folderIds=null Issue was intruduced with Grafana 12. Fix is tested with Grafana 11 and 12.
1 parent b250ddc commit cf70efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grafana_api/folder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def get_all_folder_ids_and_names(self) -> list:
399399
"""
400400

401401
folders_raw: list = Api(self.grafana_api_model).call_the_api(
402-
f"{APIEndpoints.SEARCH.value}?folderIds=0"
402+
f"{APIEndpoints.SEARCH.value}?folderIds=null"
403403
)
404404
folders_raw_len: int = len(folders_raw)
405405
folders: list = list()

0 commit comments

Comments
 (0)