mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
Merge pull request #48375 from lbausch/mgr/balancer-fix_end_weekday_being_exclusive
mgr/balancer: Fix `end_weekday` being exclusive Reviewed-by: Laura Flores <lflores@redhat.com>
This commit is contained in:
commit
dc61eb4372
@ -648,7 +648,7 @@ class Module(MgrModule):
|
|||||||
begin_weekday = cast(int, self.get_module_option('begin_weekday'))
|
begin_weekday = cast(int, self.get_module_option('begin_weekday'))
|
||||||
end_weekday = cast(int, self.get_module_option('end_weekday'))
|
end_weekday = cast(int, self.get_module_option('end_weekday'))
|
||||||
if begin_weekday < end_weekday:
|
if begin_weekday < end_weekday:
|
||||||
permit = begin_weekday <= weekday < end_weekday
|
permit = begin_weekday <= weekday <= end_weekday
|
||||||
elif begin_weekday == end_weekday:
|
elif begin_weekday == end_weekday:
|
||||||
permit = True
|
permit = True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user