resetting cronjob configuration from manually set schedule
Bug #2016659 reported by
Tianqi Xiao
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logrotate-charm |
Fix Released
|
Undecided
|
Martin Kalcok |
Bug Description
Currently, after customizing cronjob schedule with "set" or "random" keyword in `update-
To resolve this issue, the most obvious way is to implement logic for updating cronjob schedule when the config value is "unset" during config-changed hook. Alternatively, if, for any reason, the previously mentioned method is impossible, we could consider adding an action for resetting the schedule.
Related branches
~martin-kalcok/charm-logrotated:crontab-daily-unset
- Eric Chen: Approve
- JamesLin: Approve
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- BootStack Reviewers: Pending requested
-
Diff: 64 lines (+18/-12)2 files modifiedsrc/lib/lib_cron.py (+17/-12)
src/tests/unit/test_logrotate.py (+1/-0)
Changed in charm-logrotated: | |
status: | New → Triaged |
tags: | added: bseng-1096 |
Changed in charm-logrotated: | |
assignee: | nobody → Martin Kalcok (martin-kalcok) |
status: | Triaged → In Progress |
Changed in charm-logrotated: | |
status: | In Progress → Fix Committed |
Changed in charm-logrotated: | |
milestone: | none → 23.07 |
Changed in charm-logrotated: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.