Don't set init, update if there is no database name for issue223

This commit is contained in:
Cédric Krier committed 2008-07-30 15:48:17 +02:00
1 parent 5a1555a059
commit a643dc13b2
1 file changed
+2 -2
+2 -2
View File
@@ -93,13 +93,13 @@ class ConfigManager(object):
self.options[arg] = getattr(opt, arg)
init = {}
if opt.init:
if opt.init and self.options.get('db_name'):
for i in opt.init.split(','):
init[i] = 1
self.options['init'] = init
update = {}
if opt.update:
if opt.update and self.options.get('db_name'):
for i in opt.update.split(','):
update[i] = 1
self.options['update'] = update