sysdiglabs/sysdig-sdk-python

Do not append "restored by" description if already existing

0snug0 opened this issue · 0 comments

a['description'] += ' (updated via restore_alerts.py)'

Issue:
Each time you restore alerts "updated via restore_alerts.py" in the description is appended so you get something like: ${DESCRITPION} updated via restore_alerts.py updated via restore_alerts.py updated via restore_alerts.py

Solution:
Remove this or don't append if it already exists - If we must have it, adding a date at the end would be useful that is overwritten each new restore