From 2b605025c13f8fe8ccfa144c636e1733416854a9 Mon Sep 17 00:00:00 2001 From: Endre Karlson Date: Thu, 25 Apr 2013 12:55:22 -0700 Subject: [PATCH] Fixup resync --- tools/{resync_rating.py => resync_biller.py} | 10 +++++----- tools/{resync_identity.py => resync_rater.py} | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) rename tools/{resync_rating.py => resync_biller.py} (64%) rename tools/{resync_identity.py => resync_rater.py} (51%) diff --git a/tools/resync_rating.py b/tools/resync_biller.py similarity index 64% rename from tools/resync_rating.py rename to tools/resync_biller.py index cf29a6a..4bc76f4 100644 --- a/tools/resync_rating.py +++ b/tools/resync_biller.py @@ -7,20 +7,20 @@ from oslo.config import cfg from billingstack.openstack.common import log as logging from billingstack import service -from billingstack.rating.storage import get_connection +from billingstack.biller.storage import get_connection LOG = logging.getLogger(__name__) -cfg.CONF.import_opt('storage_driver', 'billingstack.rating.storage', - group='service:rating') +cfg.CONF.import_opt('storage_driver', 'billingstack.biller.storage', + group='service:biller') cfg.CONF.import_opt('state_path', 'billingstack.paths') cfg.CONF.import_opt('database_connection', - 'billingstack.rating.storage.impl_sqlalchemy', - group='rating:sqlalchemy') + 'billingstack.biller.storage.impl_sqlalchemy', + group='biller:sqlalchemy') if __name__ == '__main__': diff --git a/tools/resync_identity.py b/tools/resync_rater.py similarity index 51% rename from tools/resync_identity.py rename to tools/resync_rater.py index dc64885..d3c43fc 100644 --- a/tools/resync_identity.py +++ b/tools/resync_rater.py @@ -7,26 +7,26 @@ from oslo.config import cfg from billingstack.openstack.common import log as logging from billingstack import service -from billingstack.identity.base import IdentityPlugin +from billingstack.rater.storage import get_connection LOG = logging.getLogger(__name__) -cfg.CONF.import_opt('storage_driver', 'billingstack.identity.api', - group='service:identity_api') +cfg.CONF.import_opt('storage_driver', 'billingstack.rater.storage', + group='service:rater') cfg.CONF.import_opt('state_path', 'billingstack.paths') cfg.CONF.import_opt('database_connection', - 'billingstack.identity.impl_sqlalchemy', - group='identity:sqlalchemy') + 'billingstack.rater.storage.impl_sqlalchemy', + group='rater:sqlalchemy') if __name__ == '__main__': service.prepare_service(sys.argv) - plugin = IdentityPlugin.get_plugin()() + connection = get_connection() LOG.info("Re-Syncing database") - plugin.teardown_schema() - plugin.setup_schema() + connection.teardown_schema() + connection.setup_schema()