Should perform sanity checks for "override" option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logrotate-charm |
New
|
Low
|
Unassigned |
Bug Description
Currently, "override" option allows one to change "rotate" and "interval" directives to any value, it's not desired.
One could easily set "rotate" and "interval" to invalid value such as "rotate = -5" or "interval = decade" without problems. However, if one want to change them back to original value, then it's impossible. This is mainly because the charm uses regex to change these values [1,2].
```
/var/log/
rotate -5
decade
compress
missingok
notifempty
rotate 5
}
/var/log/
rotate -5
decade
compress
missingok
notifempty
rotate 5
}
```
[1] https:/
[2] https:/
tags: | added: bseng-1178 |
Changed in charm-logrotated: | |
importance: | Undecided → Low |