Skip to content

Commit 1c97e29

Browse files
committed
chore: fixed chart id in remove chart
1 parent bddd51d commit 1c97e29

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/secops/chronicle/dashboard.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,9 @@ def remove_chart(
583583
APIError: If the API request fails
584584
"""
585585
dashboard_id = format_resource_id(dashboard_id)
586-
chart_id = format_resource_id(chart_id)
586+
587+
if not chart_id.startswith("projects/"):
588+
chart_id = f"{client.instance_id}/dashboardCharts/{chart_id}"
587589

588590
return chronicle_request(
589591
client,

0 commit comments

Comments
 (0)