Skip to content

Commit

Permalink
sonar cloud changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynatrace-James-Kitson committed Oct 30, 2024
1 parent d3652ec commit 667653b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dynatrace/configuration_v1/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def list(self, owner: str = None, tags: List[str] = None) -> PaginatedList["Dash
The dashboard must match all the specified tags.
"""
params = {"owner": owner, "tags": tags}
return PaginatedList(DashboardStub, self.__http_client, f"/api/config/v1/dashboards", params, list_item="dashboards")
return PaginatedList(DashboardStub, self.__http_client, "/api/config/v1/dashboards", params, list_item="dashboards")

def get(self, dashboard_id: str) -> "Dashboard":
"""
Expand All @@ -46,11 +46,11 @@ def get(self, dashboard_id: str) -> "Dashboard":
return Dashboard(self.__http_client, None, response)

def post(self, body: dict):
return self.__http_client.make_request(f"/api/config/v1/dashboards", params=body, method="POST")
return self.__http_client.make_request("/api/config/v1/dashboards", params=body, method="POST")

def put(self, dashboard_id: str, body: dict):
params = {"id": dashboard_id, "body": body}
return self.__http_client.make_request(f"/api/config/v1/dashboards/{dashboard_id}", params={params}, method="PUT")
return self.__http_client.make_request(f"/api/config/v1/dashboards/{dashboard_id}", params=params, method="PUT")

def delete(self, dashboard_id: str) -> Response:
"""
Expand Down

0 comments on commit 667653b

Please sign in to comment.