summaryrefslogtreecommitdiffstats
path: root/base/server/src/scriptlets
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2013-06-25 00:38:30 -0400
committerAbhishek Koneru <akoneru@redhat.com>2013-06-27 15:38:50 -0400
commitc1d47410a09ed7f15ff929021b3815137f5ff94e (patch)
treec8de83c5dead38c5162a6e20d6aca64c285262dd /base/server/src/scriptlets
parent66c34cfbe1ca67c7ad7b5fddae26cd1b2d53e8c4 (diff)
downloadpki-c1d47410a09ed7f15ff929021b3815137f5ff94e.tar.gz
pki-c1d47410a09ed7f15ff929021b3815137f5ff94e.tar.xz
pki-c1d47410a09ed7f15ff929021b3815137f5ff94e.zip
Applied PEP8 formatting to python files.
General formatting done for all the python files except for the line length issue, which could not be formatted using Pydev in Eclipse. Ticket #316
Diffstat (limited to 'base/server/src/scriptlets')
-rw-r--r--base/server/src/scriptlets/configuration.py6
-rw-r--r--base/server/src/scriptlets/infrastructure_layout.py6
-rw-r--r--base/server/src/scriptlets/security_databases.py2
-rw-r--r--base/server/src/scriptlets/slot_substitution.py8
4 files changed, 11 insertions, 11 deletions
diff --git a/base/server/src/scriptlets/configuration.py b/base/server/src/scriptlets/configuration.py
index 970d1aefd..b2223cab7 100644
--- a/base/server/src/scriptlets/configuration.py
+++ b/base/server/src/scriptlets/configuration.py
@@ -74,7 +74,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
# Start/Restart this Apache/Tomcat PKI Process
if deployer.master_dict['pki_subsystem'] in config.PKI_APACHE_SUBSYSTEMS:
- apache_instance_subsystems =\
+ apache_instance_subsystems = \
deployer.instance.apache_instance_subsystems()
if apache_instance_subsystems == 1:
deployer.systemd.start()
@@ -86,7 +86,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
if config.str2bool(deployer.master_dict['pki_enable_java_debugger']):
config.prepare_for_an_external_java_debugger(
deployer.master_dict['pki_target_tomcat_conf_instance_id'])
- tomcat_instance_subsystems =\
+ tomcat_instance_subsystems = \
len(deployer.instance.tomcat_instance_subsystems())
if tomcat_instance_subsystems == 1:
deployer.systemd.start()
@@ -115,7 +115,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
elif deployer.master_dict['pki_instance_type'] == "Tomcat":
# CA, KRA, OCSP, TKS, or TPS
data = deployer.config_client.construct_pki_configuration_data()
-
+
# Configure the substem
deployer.config_client.configure_pki_data(
json.dumps(data, cls=pki.encoder.CustomTypeEncoder))
diff --git a/base/server/src/scriptlets/infrastructure_layout.py b/base/server/src/scriptlets/infrastructure_layout.py
index 4fe31ef3d..3becd34c3 100644
--- a/base/server/src/scriptlets/infrastructure_layout.py
+++ b/base/server/src/scriptlets/infrastructure_layout.py
@@ -60,7 +60,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
print "Storing deployment configuration into " + deployer.master_dict['pki_user_deployment_cfg_replica'] + "."
- #Archive the user deployment configuration excluding the sensitive parameters
+ # Archive the user deployment configuration excluding the sensitive parameters
sensitive_parameters = deployer.master_dict['sensitive_parameters'].split()
sections = config.user_config.sections()
for s in sections:
@@ -87,7 +87,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
# and will already exist
# deployer.directory.create(deployer.master_dict['pki_log_path'])
# establish top-level infrastructure configuration
- if deployer.master_dict['pki_configuration_path'] !=\
+ if deployer.master_dict['pki_configuration_path'] != \
config.PKI_DEPLOYMENT_CONFIGURATION_ROOT:
deployer.directory.create(deployer.master_dict['pki_configuration_path'])
return self.rv
@@ -106,7 +106,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
# deployer.directory.delete(deployer.master_dict['pki_log_path'])
# remove top-level infrastructure configuration
if deployer.directory.is_empty(deployer.master_dict['pki_configuration_path'])\
- and deployer.master_dict['pki_configuration_path'] !=\
+ and deployer.master_dict['pki_configuration_path'] != \
config.PKI_DEPLOYMENT_CONFIGURATION_ROOT:
deployer.directory.delete(deployer.master_dict['pki_configuration_path'])
# remove top-level infrastructure registry
diff --git a/base/server/src/scriptlets/security_databases.py b/base/server/src/scriptlets/security_databases.py
index d18e2151b..d8a6eeb65 100644
--- a/base/server/src/scriptlets/security_databases.py
+++ b/base/server/src/scriptlets/security_databases.py
@@ -62,7 +62,7 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
config.PKI_DEPLOYMENT_DEFAULT_SECURITY_DATABASE_PERMISSIONS)
if len(deployer.instance.tomcat_instance_subsystems()) < 2:
- # only create a self signed cert for a new instance
+ # only create a self signed cert for a new instance
rv = deployer.certutil.verify_certificate_exists(
deployer.master_dict['pki_database_path'],
deployer.master_dict['pki_cert_database'],
diff --git a/base/server/src/scriptlets/slot_substitution.py b/base/server/src/scriptlets/slot_substitution.py
index a4c90908c..bd3211b9d 100644
--- a/base/server/src/scriptlets/slot_substitution.py
+++ b/base/server/src/scriptlets/slot_substitution.py
@@ -73,13 +73,13 @@ class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet):
deployer.master_dict['pki_target_subsystem_web_xml'])
# Strip "<filter>" section from subsystem "web.xml"
# This is ONLY necessary because XML comments cannot be "nested"!
- #deployer.file.copy(deployer.master_dict['pki_target_subsystem_web_xml'],
+ # deployer.file.copy(deployer.master_dict['pki_target_subsystem_web_xml'],
# deployer.master_dict['pki_target_subsystem_web_xml_orig'])
- #deployer.file.delete(deployer.master_dict['pki_target_subsystem_web_xml'])
- #util.xml_file.remove_filter_section_from_web_xml(
+ # deployer.file.delete(deployer.master_dict['pki_target_subsystem_web_xml'])
+ # util.xml_file.remove_filter_section_from_web_xml(
# deployer.master_dict['pki_target_subsystem_web_xml_orig'],
# deployer.master_dict['pki_target_subsystem_web_xml'])
- #deployer.file.delete(deployer.master_dict['pki_target_subsystem_web_xml_orig'])
+ # deployer.file.delete(deployer.master_dict['pki_target_subsystem_web_xml_orig'])
if deployer.master_dict['pki_subsystem'] == "CA":
deployer.file.copy_with_slot_substitution(
deployer.master_dict['pki_source_proxy_conf'],