Skip to content

Commit 667653b

Browse files
sonar cloud changes
1 parent d3652ec commit 667653b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dynatrace/configuration_v1/dashboard.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def list(self, owner: str = None, tags: List[str] = None) -> PaginatedList["Dash
3636
The dashboard must match all the specified tags.
3737
"""
3838
params = {"owner": owner, "tags": tags}
39-
return PaginatedList(DashboardStub, self.__http_client, f"/api/config/v1/dashboards", params, list_item="dashboards")
39+
return PaginatedList(DashboardStub, self.__http_client, "/api/config/v1/dashboards", params, list_item="dashboards")
4040

4141
def get(self, dashboard_id: str) -> "Dashboard":
4242
"""
@@ -46,11 +46,11 @@ def get(self, dashboard_id: str) -> "Dashboard":
4646
return Dashboard(self.__http_client, None, response)
4747

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

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

5555
def delete(self, dashboard_id: str) -> Response:
5656
"""

0 commit comments

Comments
 (0)