summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-14 11:56:58 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-14 11:57:06 -0500
commita985d238e6eee195878e42b8fa7b37f9cd27f9ac (patch)
tree5d72cdc5f213fad5a281df8b3f4e2bc234003091 /src/lib
parent41f8803559f4d2b9d2df005464c9ad199431f9a6 (diff)
downloadbcfg2-a985d238e6eee195878e42b8fa7b37f9cd27f9ac.tar.gz
bcfg2-a985d238e6eee195878e42b8fa7b37f9cd27f9ac.tar.bz2
bcfg2-a985d238e6eee195878e42b8fa7b37f9cd27f9ac.zip
SSLCA: fixed variable names
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/SSLCA.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/SSLCA.py b/src/lib/Bcfg2/Server/Plugins/SSLCA.py
index a920a9cca..62396f860 100644
--- a/src/lib/Bcfg2/Server/Plugins/SSLCA.py
+++ b/src/lib/Bcfg2/Server/Plugins/SSLCA.py
@@ -278,7 +278,7 @@ class SSLCA(Bcfg2.Server.Plugin.GroupSpool):
used to generate the required certificate request
"""
# create temp request config file
- fh, fname = tempfile.mkstemp()
+ fd, fname = tempfile.mkstemp()
cfp = ConfigParser.ConfigParser({})
cfp.optionxform = str
defaults = {
@@ -312,7 +312,7 @@ class SSLCA(Bcfg2.Server.Plugin.GroupSpool):
cfp.set('req_distinguished_name', 'CN', metadata.hostname)
self.debug_log("SSLCA: Writing temporary request config to %s" % fname)
try:
- cfp.write(os.fdopen(fh, 'w'))
+ cfp.write(os.fdopen(fd, 'w'))
except IOError:
raise PluginExecutionError("SSLCA: Failed to write temporary CSR "
"config file: %s" % sys.exc_info()[1])
@@ -322,8 +322,8 @@ class SSLCA(Bcfg2.Server.Plugin.GroupSpool):
"""
creates the certificate request
"""
- fh, req = tempfile.mkstemp()
- os.close(fh)
+ fd, req = tempfile.mkstemp()
+ os.close(fd)
days = self.cert_specs[entry.get('name')]['days']
key = self.data + key_filename
cmd = ["openssl", "req", "-new", "-config", req_config,