Skip to content

Commit ae50df2

Browse files
committed
Options: Permit usage without authentication credentials or token
1 parent 0c1dad4 commit ae50df2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- Improved Python API authentication when using URL-based connectivity,
77
by respecting the `credential` keyword argument
88
- Added basic example program about how to import a dashboard
9+
- Options: Permitted usage without authentication credentials or token
910

1011
## 0.4.0 (2024-10-16)
1112
- Fixed folder argument issue

grafana_import/grafana.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ def __init__(self, **kwargs):
7575
config["host"] = kwargs.get("host", "localhost")
7676
config["port"] = kwargs.get("port", 3000)
7777
config["token"] = kwargs.get("token", None)
78-
if config["token"] is None:
79-
raise GrafanaClient.GrafanaBadInputError("Grafana authentication token missing")
80-
8178
config["verify_ssl"] = kwargs.get("verify_ssl", True)
8279

8380
self.grafana_api = GrafanaApi.GrafanaApi(

0 commit comments

Comments
 (0)