Skip to content

Commit

Permalink
fix: shorten line
Browse files Browse the repository at this point in the history
  • Loading branch information
jl2397 committed Sep 27, 2024
1 parent 429d6e8 commit 30b9ce8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion grafana_import/grafana.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def __init__(self, **kwargs):

# Configure Grafana connectivity.
if "url" in kwargs:
self.grafana_api = GrafanaApi.GrafanaApi.from_url(url=kwargs["url"], credential=os.environ.get("GRAFANA_TOKEN"))
self.grafana_api = GrafanaApi.GrafanaApi.from_url(

Check warning on line 69 in grafana_import/grafana.py

View check run for this annotation

Codecov / codecov/patch

grafana_import/grafana.py#L69

Added line #L69 was not covered by tests
url=kwargs["url"],
credential=os.environ.get("GRAFANA_TOKEN")
)
else:
config = {}
config["protocol"] = kwargs.get("protocol", "http")
Expand Down

0 comments on commit 30b9ce8

Please sign in to comment.