canonical / charm-logrotated

logrotate is a subordinate charm that ensure that all logrotate.d configurations within /etc/logrotate.d/ folder are modified accordingly to a retention period defined in the charm
0 stars 2 forks source link

Logrotate cron library must support juju 3 #41

Closed dparv closed 3 months ago

dparv commented 3 months ago

Currently it uses

https://github.com/canonical/charm-logrotated/blob/3178614ef57c5fe5dec467fb022a8187717255ba/src/lib/lib_cron.py#L68

This needs to be changed to check if juju version is 2, use juju-run, if juju version is 3 - use juju-exec.

samuelallan72 commented 3 months ago

@dparv a fix has been merged and is available on edge. :)