sysdig-sdk-python icon indicating copy to clipboard operation
sysdig-sdk-python copied to clipboard

scopeExpressionList being overwritten during create_dashboard_from_file

Open samiwelthomasHO opened this issue 3 years ago • 0 comments
trafficstars

When we create a dashboard using the create_dashboard_from_file function, we pass in a scopeExpressionList in the JSON file as per the V3 Dashboards API https://app.sysdigcloud.com/api/public/docs/index.html#tag/Dashboard-V3.

We noticed that our scopes were being overwritten to an empty list here https://github.com/sysdiglabs/sysdig-sdk-python/blob/master/sdcclient/monitor/_dashboards_v3.py#L287

Not sure if this is a bug, but we skipped this line of code and the Dashboard was created successfully and our dashboard scopes were created as expected.

samiwelthomasHO avatar Nov 09 '22 14:11 samiwelthomasHO