Make Object FieldType take an object name instead of a class
The object infrastructure has a concept of an object name, which is what we use to determine if something implements a particular thing, and it is how we look up object classes when we deserialize them. Since many objects will eventually reference each other, we should be using their names to determine compatibility, not their classes. Related to blueprint structured-object-fields Change-Id: I2edb8b8475662ad25e9f3319ce5e44317a2d0547
This commit is contained in:
@@ -149,6 +149,10 @@ class AggregateList(base.ObjectListBase, base.NovaObject):
|
||||
# Version 1.1: Added key argument to get_by_host()
|
||||
VERSION = '1.1'
|
||||
|
||||
fields = {
|
||||
'objects': fields.ListOfObjectsField('Aggregate'),
|
||||
}
|
||||
|
||||
@base.remotable_classmethod
|
||||
def get_all(cls, context):
|
||||
db_aggregates = db.aggregate_get_all(context)
|
||||
|
||||
Reference in New Issue
Block a user