mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
config plugin: replace 'is 0' with '== 0'
Since python3.8, identity checks with literal produce syntax warnings. Replace the check 'if .. is 0' with 'if .. == 0' Related: https://pagure.io/freeipa/issue/8057 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
02262ac7cf
commit
4a437a3c42
@ -503,12 +503,12 @@ class config_mod(LDAPUpdate):
|
||||
|
||||
# Set ipasearchrecordslimit to -1 if 0 is used
|
||||
if 'ipasearchrecordslimit' in entry_attrs:
|
||||
if entry_attrs['ipasearchrecordslimit'] is 0:
|
||||
if entry_attrs['ipasearchrecordslimit'] == 0:
|
||||
entry_attrs['ipasearchrecordslimit'] = -1
|
||||
|
||||
# Set ipasearchtimelimit to -1 if 0 is used
|
||||
if 'ipasearchtimelimit' in entry_attrs:
|
||||
if entry_attrs['ipasearchtimelimit'] is 0:
|
||||
if entry_attrs['ipasearchtimelimit'] == 0:
|
||||
entry_attrs['ipasearchtimelimit'] = -1
|
||||
|
||||
for (attr, obj) in (('ipauserobjectclasses', 'user'),
|
||||
|
Loading…
Reference in New Issue
Block a user