diff options
author | Ade Lee <alee@redhat.com> | 2014-06-06 21:46:04 +0800 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2014-06-10 20:54:26 +0700 |
commit | cfb1486b7693b208c99f1853763404b2b5f68322 (patch) | |
tree | c18a9656029b43f93d5fb51fcf6d65b0b3d843d3 /base/server/sbin/pkidestroy | |
parent | d2980374a6c241b507f21a6acb4ec04a19241025 (diff) | |
download | pki-cfb1486b7693b208c99f1853763404b2b5f68322.tar.gz pki-cfb1486b7693b208c99f1853763404b2b5f68322.tar.xz pki-cfb1486b7693b208c99f1853763404b2b5f68322.zip |
Modify master_dict to mdict to improve readability
Most of the install python scripts do not meet PEP8 including
being less than 80 chars. Changing master_dict to mdict helps
fix this and improves or at least does not degrade readability.
Diffstat (limited to 'base/server/sbin/pkidestroy')
-rwxr-xr-x | base/server/sbin/pkidestroy | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/server/sbin/pkidestroy b/base/server/sbin/pkidestroy index 16479f9fd..e9eadf9ba 100755 --- a/base/server/sbin/pkidestroy +++ b/base/server/sbin/pkidestroy @@ -230,18 +230,18 @@ def main(argv): # Combine the various sectional dictionaries into a PKI master dictionary parser.compose_pki_master_dictionary() - parser.pki_master_dict['pki_destroy_log'] = config.pki_log_dir + "/" +\ + parser.mdict['pki_destroy_log'] = config.pki_log_dir + "/" +\ config.pki_log_name config.pki_log.debug(log.PKI_DICTIONARY_MASTER, extra=config.PKI_INDENTATION_LEVEL_0) - config.pki_log.debug(pkilogging.log_format(parser.pki_master_dict), + config.pki_log.debug(pkilogging.log_format(parser.mdict), extra=config.PKI_INDENTATION_LEVEL_0) print "Uninstalling " + config.pki_subsystem + " from " + deployed_pki_instance_path + "." # Process the various "scriptlets" to remove the specified PKI subsystem. - pki_subsystem_scriptlets = parser.pki_master_dict['destroy_scriplets'].split() - deployer = util.PKIDeployer(parser.pki_master_dict) + pki_subsystem_scriptlets = parser.mdict['destroy_scriplets'].split() + deployer = util.PKIDeployer(parser.mdict) rv = 0 for pki_scriptlet in pki_subsystem_scriptlets: scriptlet = __import__("pki.server.deployment.scriptlets." + @@ -253,7 +253,7 @@ def main(argv): sys.exit(1) config.pki_log.debug(log.PKI_DICTIONARY_MASTER, extra=config.PKI_INDENTATION_LEVEL_0) - config.pki_log.debug(pkilogging.log_format(parser.pki_master_dict), + config.pki_log.debug(pkilogging.log_format(parser.mdict), extra=config.PKI_INDENTATION_LEVEL_0) print |