summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-20 12:41:02 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-20 12:41:02 -0500
commit1701d9ec63fc1197a49384cc3341525bdff8d840 (patch)
treeece6a03a3598c02d9a3c826054591bb164f9dcb9 /src
parent207bf555ac0f472a4929e0e06bfdfe520fe0ddc2 (diff)
downloadbcfg2-1701d9ec63fc1197a49384cc3341525bdff8d840.tar.gz
bcfg2-1701d9ec63fc1197a49384cc3341525bdff8d840.tar.bz2
bcfg2-1701d9ec63fc1197a49384cc3341525bdff8d840.zip
SSLCA: read SSLCA config without instantiating a new ConfigParser
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/SSLCA.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/SSLCA.py b/src/lib/Bcfg2/Server/Plugins/SSLCA.py
index 62396f860..b3a49c047 100644
--- a/src/lib/Bcfg2/Server/Plugins/SSLCA.py
+++ b/src/lib/Bcfg2/Server/Plugins/SSLCA.py
@@ -73,9 +73,8 @@ class SSLCA(Bcfg2.Server.Plugin.GroupSpool):
cert_spec.get('append_chain',
'false').lower() == 'true',
}
- cfp = ConfigParser.ConfigParser()
- cfp.read(self.core.cfile)
- self.CAs[ca] = dict(cfp.items('sslca_' + ca))
+ self.CAs[ca] = dict(self.core.setup.cfp.items('sslca_%s' %
+ ca))
self.Entries['Path'][ident] = self.get_cert
elif event.filename.endswith("info.xml"):
self.infoxml[ident] = Bcfg2.Server.Plugin.InfoXML(epath)