diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-04-13 14:16:50 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-04-13 14:16:50 -0500 |
commit | dd8594eb5427610ade2f1f8abf465cde8c9568fd (patch) | |
tree | 7d8e488523feb78793dcde00989f8198c557f76f /src/lib/Server/Admin/Init.py | |
parent | 1add5c6332fb8f59abf377d4167099ae9c5f1125 (diff) | |
parent | d893117dde07ca3afcc4739245e3670178e1da08 (diff) | |
download | bcfg2-dd8594eb5427610ade2f1f8abf465cde8c9568fd.tar.gz bcfg2-dd8594eb5427610ade2f1f8abf465cde8c9568fd.tar.bz2 bcfg2-dd8594eb5427610ade2f1f8abf465cde8c9568fd.zip |
Merge branch 'py3k'
Diffstat (limited to 'src/lib/Server/Admin/Init.py')
-rw-r--r-- | src/lib/Server/Admin/Init.py | 4 |
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" % |