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:
Yuri Weinstein 2022-12-08 08:49:17 -08:00 committed by GitHub
commit dc61eb4372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: