]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix DB sync script
authorZane Bitter <zbitter@redhat.com>
Mon, 29 Apr 2013 17:30:13 +0000 (19:30 +0200)
committerZane Bitter <zbitter@redhat.com>
Mon, 29 Apr 2013 17:32:28 +0000 (19:32 +0200)
Broken by a60f6d45693c8a0d70f78a0fa9216a8c54c062e7, since we don't
import the db api into heat.db any more.

Change-Id: If5175ae84c9da0c8787a162a549b727381c6fbd6

heat/db/sync.py

index 96981340e35d72fbf422e0673d5ae99780e2f44d..7d8a7a5b91298625c3bc446b7a83e302c6be1c2d 100755 (executable)
@@ -22,7 +22,7 @@ gettext.install('heat', unicode=1)
 
 from oslo.config import cfg
 from heat.openstack.common import log as logging
-import heat.db
+from heat.db import api
 from heat.db import migration
 
 
@@ -32,7 +32,7 @@ LOG = logging.getLogger(__name__)
 if __name__ == '__main__':
     cfg.CONF(project='heat', prog='heat-engine')
 
-    heat.db.configure()
+    api.configure()
 
     try:
         migration.db_sync()