summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-04-13 10:37:09 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-04-13 10:37:09 -0500
commit8c1a8e6af30ca282027565097ffa1cc907f7be16 (patch)
treea2229fc83e20cca5fb2f69641e91180ee6a9c64c /src
parent41edd7fddc7cb53d0fe3880c7707eb0f58879e59 (diff)
downloadbcfg2-8c1a8e6af30ca282027565097ffa1cc907f7be16.tar.gz
bcfg2-8c1a8e6af30ca282027565097ffa1cc907f7be16.tar.bz2
bcfg2-8c1a8e6af30ca282027565097ffa1cc907f7be16.zip
Init: PEP8 fixes
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Admin/Init.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Admin/Init.py b/src/lib/Server/Admin/Init.py
index 9771fd10b..1c12aee24 100644
--- a/src/lib/Server/Admin/Init.py
+++ b/src/lib/Server/Admin/Init.py
@@ -138,7 +138,7 @@ def create_key(hostname, keypath, certpath, country, state, location):
keypath,
certpath))
subprocess.call((ccstr), shell=True)
- os.chmod(keypath, stat.S_IRUSR|stat.S_IWUSR) # 0600
+ os.chmod(keypath, stat.S_IRUSR | stat.S_IWUSR) # 0600
def create_conf(confpath, confdata):
@@ -156,7 +156,7 @@ def create_conf(confpath, confdata):
return
try:
open(confpath, "w").write(confdata)
- os.chmod(keypath, stat.S_IRUSR|stat.S_IWUSR) # 0600
+ os.chmod(keypath, stat.S_IRUSR | stat.S_IWUSR) # 0600
except Exception, e:
print("Error %s occured while trying to write configuration "
"file to '%s'.\n" %