]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/snap_schedule: change minute duration specifier from M to m
authorMilind Changire <mchangir@redhat.com>
Thu, 24 Aug 2023 02:17:46 +0000 (07:47 +0530)
committerMilind Changire <mchangir@redhat.com>
Mon, 22 Jan 2024 04:37:36 +0000 (10:07 +0530)
commit5a81d768c7e41a017424944d9ccc473fa2b1c0d2
treed88d6e034df2c442bce817466167de9fbecbd428
parent12c47259864e27acfe053695ad248b997d44e9d8
mgr/snap_schedule: change minute duration specifier from M to m

Problem:
As per the issue tracker, the period spec specifier 'M' is not
consistent with what is used elsewhere, like the period specifiers
displayed in the 'ceph status' command output.
The 'M' period specifier is used as a 'minute' level period specifier by
the cephfs team.
The issue reporter suggests to use 'M' as a 'month' period specifier.

Solution:
Since the 'minute' level period specifer, 'M', is used internally by
the development team, it is failrly easy to swap the 'minute' ('M')
level and 'month' ('m') level period specifers to finally mean that 'm'
implies 'minute' level period and 'M' implies 'month' level period.
Also, since this is the first time that somebody has ever reported that
neither the 'M' nor the 'm' level specifiers work in production, it is a
good idea to fix them once and for all.

Fixes: https://tracker.ceph.com/issues/62494
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit 2f6d87d1811b745c4efcac72c03ddb42751ad634)
src/pybind/mgr/snap_schedule/fs/schedule.py
src/pybind/mgr/snap_schedule/fs/schedule_client.py