Skip to content

Commit

Permalink
Permit sending unauthenticated requests to Grafana with auth=None
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Mar 29, 2024
1 parent 5b3c90f commit 12bee83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grafana_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def construct_api_url():
# orgId is defined in the openapi3 spec as an int64, but headers need to be a str
self.s.headers["X-Grafana-Org-Id"] = str(self.organization_id)

# Permit sending unauthenticated requests to Grafana with `auth=None`.
if self.auth is not None:
if isinstance(self.auth, niquests.auth.AuthBase):
pass
Expand Down

0 comments on commit 12bee83

Please sign in to comment.