From dfbb0a2a2412d70c31cfc152b91fa3a1490493dd Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 16 Mar 2012 12:17:50 -0400 Subject: [PATCH] use an abstract base class to force the api of the db installer --- devstack/components/db.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devstack/components/db.py b/devstack/components/db.py index 0fbc6bb3..9a55131f 100644 --- a/devstack/components/db.py +++ b/devstack/components/db.py @@ -21,6 +21,8 @@ from devstack import settings from devstack import shell as sh from devstack import utils +import abc + LOG = logging.getLogger("devstack.components.db") # How long we wait before using the database after a restart @@ -78,6 +80,8 @@ class DBUninstaller(comp.PkgUninstallComponent): class DBInstaller(comp.PkgInstallComponent): + __meta__ = abc.ABCMeta + def __init__(self, *args, **kargs): comp.PkgInstallComponent.__init__(self, *args, **kargs) self.runtime = DBRuntime(*args, **kargs) @@ -99,6 +103,7 @@ class DBInstaller(comp.PkgInstallComponent): for key, prompt in WARMUP_PWS: self.pw_gen.get_password(key, prompt) + @abc.abstractmethod def _configure_db_confs(self): pass