Fix ca_initialize_hsm_state

Fixup for commit eb2313920e.
configparser's set() method does not convert boolean to string
automatically. Use string '"False"', which is then interpreted as
boolean 'False' by getboolean().

Related: https://pagure.io/freeipa/issue/5608
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes 2019-08-20 16:58:14 +02:00 committed by Alexander Bokovoy
parent c709f13171
commit bebe09f3e4

View File

@ -480,7 +480,7 @@ def ca_initialize_hsm_state(ca):
section_name = ca.subsystem.upper()
config = SafeConfigParser()
config.add_section(section_name)
config.set(section_name, 'pki_hsm_enable', False)
config.set(section_name, 'pki_hsm_enable', 'False')
ca.set_hsm_state(config)