Skip to content

Commit 12bee83

Browse files
committed
Permit sending unauthenticated requests to Grafana with auth=None
1 parent 5b3c90f commit 12bee83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

grafana_client/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def construct_api_url():
125125
# orgId is defined in the openapi3 spec as an int64, but headers need to be a str
126126
self.s.headers["X-Grafana-Org-Id"] = str(self.organization_id)
127127

128+
# Permit sending unauthenticated requests to Grafana with `auth=None`.
128129
if self.auth is not None:
129130
if isinstance(self.auth, niquests.auth.AuthBase):
130131
pass

0 commit comments

Comments
 (0)