Include general configuration parameters in the cfg instance passed to

DB loggers


git-svn-id: https://kippo.googlecode.com/svn/trunk@200 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2011-02-07 17:01:45 +00:00
parent 3f74d2cd44
commit ba5c073e44

View File

@@ -534,7 +534,10 @@ class HoneyPotSSHFactory(factory.SSHFactory):
lcfg = ConfigParser.ConfigParser()
lcfg.add_section(dbengine)
for i in cfg.options(x):
lcfg.set(dbengine, i, cfg.get(x,i))
lcfg.set(dbengine, i, cfg.get(x, i))
lcfg.add_section('honeypot')
for i in cfg.options('honeypot'):
lcfg.set('honeypot', i, cfg.get('honeypot', i))
print 'Loading dblog engine: %s' % (engine,)
dblogger = __import__(
'kippo.dblog.%s' % (engine,),