mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +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'))
|
||||
end_weekday = cast(int, self.get_module_option('end_weekday'))
|
||||
if begin_weekday < end_weekday:
|
||||
permit = begin_weekday <= weekday < end_weekday
|
||||
permit = begin_weekday <= weekday <= end_weekday
|
||||
elif begin_weekday == end_weekday:
|
||||
permit = True
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user