Skip to content

Commit 4c37ff7

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[placement] Move resource_class_cache into placement hierarchy"
2 parents 352a8d1 + 08f23b5 commit 4c37ff7

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

nova/api/openstack/placement/objects/resource_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
from nova.api.openstack.placement.objects import consumer as consumer_obj
4343
from nova.api.openstack.placement.objects import project as project_obj
4444
from nova.api.openstack.placement.objects import user as user_obj
45+
from nova.api.openstack.placement import resource_class_cache as rc_cache
4546
from nova.db.sqlalchemy import api_models as models
46-
from nova.db.sqlalchemy import resource_class_cache as rc_cache
4747
from nova.i18n import _
4848
from nova import rc_fields
4949

nova/db/sqlalchemy/resource_class_cache.py renamed to nova/api/openstack/placement/resource_class_cache.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
from oslo_concurrency import lockutils
1414
import sqlalchemy as sa
1515

16-
# TODO(cdent): This file and its location is problematic for placement
17-
# extraction but we probably want to switch to os-resource-classes (like
18-
# os-traits) instead of moving it?
1916
from nova.api.openstack.placement import db_api
2017
from nova.api.openstack.placement import exception
2118
from nova.db.sqlalchemy import api_models as models

nova/tests/functional/api/openstack/placement/db/test_resource_class_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from oslo_utils import timeutils
1717

1818
from nova.api.openstack.placement import exception
19-
from nova.db.sqlalchemy import resource_class_cache as rc_cache
19+
from nova.api.openstack.placement import resource_class_cache as rc_cache
2020
from nova import rc_fields as fields
2121
from nova.tests.functional.api.openstack.placement import base
2222

0 commit comments

Comments
 (0)