OVO: Remove child_versions from list classes

On commit f0d34b7d9b we changed the way we
did backports for OVOs during upgrades removing the need to have or
maintain `child_versions` fields in our OVO list classes.

This patch removes these fields that were introduced afterwards
including some that had the field incorrectly defined as
`child_version`.

TrivialFix

Change-Id: I4308d5ad20175002d0924bd814a72e96b4119381
This commit is contained in:
Gorka Eguileor 2017-05-25 11:34:45 +02:00
parent 63433278a4
commit 2bd3533f63
5 changed files with 2 additions and 15 deletions

View File

@ -171,9 +171,6 @@ class GroupList(base.ObjectListBase, base.CinderObject):
fields = {
'objects': fields.ListOfObjectsField('Group')
}
child_version = {
'1.0': '1.0',
}
@classmethod
def get_all(cls, context, filters=None, marker=None, limit=None,

View File

@ -133,9 +133,6 @@ class GroupSnapshotList(base.ObjectListBase, base.CinderObject):
fields = {
'objects': fields.ListOfObjectsField('GroupSnapshot')
}
child_version = {
'1.0': '1.0'
}
@classmethod
def get_all(cls, context, filters=None, marker=None, limit=None,

View File

@ -102,10 +102,6 @@ class GroupTypeList(base.ObjectListBase, base.CinderObject):
'objects': fields.ListOfObjectsField('GroupType'),
}
child_versions = {
'1.0': '1.0',
}
@classmethod
def get_all(cls, context, inactive=0, filters=None, marker=None,
limit=None, sort_keys=None, sort_dirs=None, offset=None):

View File

@ -192,9 +192,6 @@ class QualityOfServiceSpecsList(base.ObjectListBase, base.CinderObject):
fields = {
'objects': fields.ListOfObjectsField('QualityOfServiceSpecs'),
}
child_versions = {
'1.0': '1.0',
}
@classmethod
def get_all(cls, context, *args, **kwargs):

View File

@ -41,7 +41,7 @@ object_data = {
'ManageableVolume': '1.0-5fd0152237ec9dfb7b5c7095b8b09ffa',
'ManageableVolumeList': '1.0-15ecf022a68ddbb8c2a6739cfc9f8f5e',
'QualityOfServiceSpecs': '1.0-0b212e0a86ee99092229874e03207fe8',
'QualityOfServiceSpecsList': '1.0-1b54e51ad0fc1f3a8878f5010e7e16dc',
'QualityOfServiceSpecsList': '1.0-15ecf022a68ddbb8c2a6739cfc9f8f5e',
'RequestSpec': '1.1-b0bd1a28d191d75648901fa853e8a733',
'Service': '1.4-c7d011989d1718ca0496ccf640b42712',
'ServiceList': '1.1-15ecf022a68ddbb8c2a6739cfc9f8f5e',
@ -55,7 +55,7 @@ object_data = {
'VolumeType': '1.3-a5d8c3473db9bc3bbcdbab9313acf4d1',
'VolumeTypeList': '1.1-15ecf022a68ddbb8c2a6739cfc9f8f5e',
'GroupType': '1.0-d4a7b272199d0b0d6fc3ceed58539d30',
'GroupTypeList': '1.0-1b54e51ad0fc1f3a8878f5010e7e16dc',
'GroupTypeList': '1.0-15ecf022a68ddbb8c2a6739cfc9f8f5e',
'Group': '1.1-bd853b1d1ee05949d9ce4b33f80ac1a0',
'GroupList': '1.0-15ecf022a68ddbb8c2a6739cfc9f8f5e',
'GroupSnapshot': '1.0-9af3e994e889cbeae4427c3e351fa91d',