fix improper handling of boolean option in

read_replica_info_kra_enabled

This patch fixes https://fedorahosted.org/freeipa/ticket/4530.

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Martin Babinsky 2015-03-17 13:43:46 +01:00 committed by Jan Cholasta
parent 4192cce80e
commit c311af06f6

View File

@ -572,7 +572,7 @@ def read_replica_info_kra_enabled(config_dir):
config = SafeConfigParser()
config.readfp(fd)
enable_kra = bool(config.get("global", "enable_kra"))
enable_kra = config.getboolean("global", "enable_kra")
return enable_kra