@param obj: The configuration instance to modify.
@param objtype: The type of the config instance (not used).
@return: The parsed option value or the default value if the value
- wasn't set in the configuration file.
+ was not set in the configuration file.
'''
if obj is None:
return self
print >> sys.stderr, "Error reading config file: %s" % e
sys.exit(1)
opts.populate(confparser, 'main')
+
+ ## build up the cas structure
+ opts.ca = {}
+
+ ## Add the default items when just using a single ca
+ opts.ca[''] = BaseConfigDerived()
+ opts.ca[''].populate(confparser,'main')
+
+ ## Add additonal ca sections
+ sections = confparser.sections()
+ for a_section in sections:
+ if a_section.startswith('ca:'):
+ ca_name = a_section[3:]
+ opts.ca[ca_name] = BaseConfigDerived()
+ opts.ca[ca_name].populate(confparser,a_section)
+ opts.ca[ca_name].cakey = None
+ opts.ca[ca_name].cacert = None
+
return opts