]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Move utils.py to a more appropriate location
authorZane Bitter <zbitter@redhat.com>
Fri, 7 Dec 2012 14:38:51 +0000 (15:38 +0100)
committerZane Bitter <zbitter@redhat.com>
Fri, 7 Dec 2012 14:47:20 +0000 (15:47 +0100)
It's only used by the database code.

Change-Id: Icd81fdb950b84bcbd365dd80f701a4992f695ea7
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/db/api.py
heat/db/migration.py
heat/db/utils.py [moved from heat/utils.py with 100% similarity]
heat/tests/functional/util.py

index b2f8765d389fd0953b9bf295bddcfc79708f589f..abac96ca068cb6030c75d09ccb18d7d496e2cbea 100644 (file)
@@ -25,7 +25,7 @@ Usage:
 The underlying driver is loaded . SQLAlchemy is currently the only
 supported backend.
 '''
-import heat.utils
+from heat.db import utils
 from heat.openstack.common import cfg
 
 
@@ -37,7 +37,7 @@ db_opts = [
                help='The backend to use for db'),
     ]
 
-IMPL = heat.utils.LazyPluggable('db_backend',
+IMPL = utils.LazyPluggable('db_backend',
                            sqlalchemy='heat.db.sqlalchemy.api')
 
 
index 610ef25560f44386ffc813b425b4c7acaad5e818..deaa2d4424f07dbb190dec6854b31bd12f804696 100644 (file)
@@ -14,7 +14,7 @@
 
 """Database setup and migration commands."""
 
-from heat import utils
+from heat.db import utils
 
 
 IMPL = utils.LazyPluggable('db_backend',
similarity index 100%
rename from heat/utils.py
rename to heat/db/utils.py
index 3a12d0513f9135f8570fc2a894d6623b8ba6a594..f5655222d1bc43d46ee799ec1b62a6db95ef2e6a 100644 (file)
@@ -40,7 +40,6 @@ except ImportError:
     from glance import client as glance_client
 from novaclient.v1_1 import client as nova_client
 import heat
-from heat import utils
 from heat.common import template_format
 from heat.engine import parser
 from heat import client as heat_client