Rename the model object ResourceProviderTraits to ResourceProviderTrait

The name of model object should be singular. This patch corrects it.

Partial implement blueprint resource-provider-traits

Change-Id: I7600d7e3775d237e0593ec52fbb474e1dad079c1
This commit is contained in:
He Jie Xu 2017-03-30 10:52:30 +08:00
parent 07fcf70cae
commit ba6e352929
2 changed files with 2 additions and 2 deletions

View File

@ -567,7 +567,7 @@ class Trait(API_BASE):
name = Column(Unicode(255), nullable=False) name = Column(Unicode(255), nullable=False)
class ResourceProviderTraits(API_BASE): class ResourceProviderTrait(API_BASE):
"""Represents the relationship between traits and resource provider""" """Represents the relationship between traits and resource provider"""
__tablename__ = "resource_provider_traits" __tablename__ = "resource_provider_traits"

View File

@ -1535,7 +1535,7 @@ class ResourceClassTestCase(ResourceProviderBaseCase):
'CUSTOM_IRON_NFV') 'CUSTOM_IRON_NFV')
class ResourceProviderTraitsTestCase(ResourceProviderBaseCase): class ResourceProviderTraitTestCase(ResourceProviderBaseCase):
def _assert_traits(self, expected_traits, traits_objs): def _assert_traits(self, expected_traits, traits_objs):
expected_traits.sort() expected_traits.sort()