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:
1 parent
44b3791bc3
commit
3cae7f4ee6
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user