Fixed output option basepath not applied to writer
Change-Id: I77837c6845a35dd251c88e211099da58129452d9
This commit is contained in:
@@ -28,6 +28,7 @@ from cloudkitty import write_orchestrator
|
||||
CONF = cfg.CONF
|
||||
CONF.import_opt('period', 'cloudkitty.collector', 'collect')
|
||||
CONF.import_opt('backend', 'cloudkitty.config', 'output')
|
||||
CONF.import_opt('basepath', 'cloudkitty.config', 'output')
|
||||
CONF.import_opt('backend', 'cloudkitty.storage', 'storage')
|
||||
STORAGES_NAMESPACE = 'cloudkitty.storage.backends'
|
||||
|
||||
@@ -62,7 +63,8 @@ class DBCommand(object):
|
||||
for tenant in tenants:
|
||||
wo = write_orchestrator.WriteOrchestrator(self._output,
|
||||
tenant,
|
||||
self._storage)
|
||||
self._storage,
|
||||
CONF.output.basepath)
|
||||
wo.init_writing_pipeline()
|
||||
if not CONF.command.begin:
|
||||
wo.restart_month()
|
||||
|
||||
Reference in New Issue
Block a user