m0nhawk/grafana_api

folder.create_folder() doesn't create folder, but returns the list of existing folder

Valiev opened this issue · 2 comments

Describe the bug
folder.create_folder() doesn't create folders. It only returns the list of existing folders.

To Reproduce
Steps to reproduce the behavior:

secret = "YOUR_SECRET_HERE"
url = "YOUR_URL_HERE"
from grafana_api.grafana_face import GrafanaFace as GF
gf = GF(auth=secret, host=url)
res = gf.folder.create_folder('NEW_TITLE')
# `res` contains only existing folders, no new folder is created 

Expected behavior
Expected new folder is created.

Versions

  • Grafana: v7.0.3 (00ee734baf)
  • grafana_api: 1.0.2
  • Authentication: Token

I can't reproduce it with the latest version. Can you check with 1.0.3?

I've checked both 1.0.2 and 1.0.3, everything is okay, no reproduction