commit 45ded8b0f90c184a5dca819822e5fdfbb92c702a
Author: Billy Olsen <email address hidden>
Date: Tue Aug 17 11:27:04 2021 -0700
Improve parsing of cron schedule
Improving the parsing of the cron schedule for /etc/cron/rabbitmq-stats.
The code makes assumptions that the user in the cron entry will be the
root user, which is generally safe as that's what the charm applied.
However, the parsing is brittle in that it depends on the 'root' string
in the entry. This changes the code so that the cron timer spec is
stripped out based on the column entries in the file.
Reviewed: https:/ /review. opendev. org/c/openstack /charm- rabbitmq- server/ +/804911 /opendev. org/openstack/ charm-rabbitmq- server/ commit/ 45ded8b0f90c184 a5dca819822e5fd fbb92c702a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 45ded8b0f90c184 a5dca819822e5fd fbb92c702a
Author: Billy Olsen <email address hidden>
Date: Tue Aug 17 11:27:04 2021 -0700
Improve parsing of cron schedule
Improving the parsing of the cron schedule for /etc/cron/ rabbitmq- stats.
The code makes assumptions that the user in the cron entry will be the
root user, which is generally safe as that's what the charm applied.
However, the parsing is brittle in that it depends on the 'root' string
in the entry. This changes the code so that the cron timer spec is
stripped out based on the column entries in the file.
Change-Id: I2d573e8942e840 e0e5376f1537a2a 3373fea3db8
Fixes-Bug: #1939702