Comment 3 for bug 1939702

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-rabbitmq-server (master)

Reviewed: https://review.opendev.org/c/openstack/charm-rabbitmq-server/+/804911
Committed: https://opendev.org/openstack/charm-rabbitmq-server/commit/45ded8b0f90c184a5dca819822e5fdfbb92c702a
Submitter: "Zuul (22348)"
Branch: master

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.

    Change-Id: I2d573e8942e840e0e5376f1537a2a3373fea3db8
    Fixes-Bug: #1939702