diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-11-13 21:54:56 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-11-27 14:01:55 -0500 |
commit | 066667d374226e1ed9da5b2c5ba71ae41a3ffa25 (patch) | |
tree | 20ea2627cdd7455d19bc1d9ae2e81939adfe5ee7 /base/deploy/src/scriptlets/pkihelper.py | |
parent | 4e69c7f03e43c2b85fb6a19f33dbedb07b156258 (diff) | |
download | pki-066667d374226e1ed9da5b2c5ba71ae41a3ffa25.tar.gz pki-066667d374226e1ed9da5b2c5ba71ae41a3ffa25.tar.xz pki-066667d374226e1ed9da5b2c5ba71ae41a3ffa25.zip |
Refactored pkiparser.py into PKIConfigParser.
The code in pkiparser.py has been converted into PKIConfigParser
class to facilitate further improvements.
Ticket #399
Diffstat (limited to 'base/deploy/src/scriptlets/pkihelper.py')
-rw-r--r-- | base/deploy/src/scriptlets/pkihelper.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/deploy/src/scriptlets/pkihelper.py b/base/deploy/src/scriptlets/pkihelper.py index b95269431..904e08614 100644 --- a/base/deploy/src/scriptlets/pkihelper.py +++ b/base/deploy/src/scriptlets/pkihelper.py @@ -47,7 +47,7 @@ from pkiconfig import pki_slots_dict as slots from pkiconfig import pki_selinux_config_ports as ports import pkimanifest as manifest import pkimessages as log -from pkiparser import read_simple_configuration_file +from pkiparser import PKIConfigParser # PKI Deployment Helper Functions @@ -2253,7 +2253,7 @@ class security_domain: def deregister(self, critical_failure=False): try: # process this PKI subsystem instance's 'CS.cfg' - cs_cfg = read_simple_configuration_file(master['pki_target_cs_cfg']) + cs_cfg = PKIConfigParser.read_simple_configuration_file(master['pki_target_cs_cfg']) # assign key name/value pairs machinename = cs_cfg.get('service.machineName') @@ -2331,7 +2331,7 @@ class security_domain: if os.path.exists(master['pki_shared_password_conf']) and\ os.path.isfile(master['pki_shared_password_conf']) and\ os.access(master['pki_shared_password_conf'], os.R_OK): - tokens = read_simple_configuration_file( + tokens = PKIConfigParser.read_simple_configuration_file( master['pki_shared_password_conf']) hardware_token = "hardware-" + token_name if tokens.has_key(hardware_token): |