Fix service ldap_disable()

Fix comparison bug that prevents ldap_disable to actually disable a
service.

Fixes: https://pagure.io/freeipa/issue/8143
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes 2019-12-10 14:59:29 +01:00
parent 44b3791bc3
commit 3cae7f4ee6

View File

@ -691,7 +691,7 @@ class Service:
# case insensitive
for value in entry.get('ipaConfigString', []):
if value.lower() == ENABLED_SERVICE:
if value.lower() == ENABLED_SERVICE.lower():
entry['ipaConfigString'].remove(value)
break