objects: remove dict compat support from all XXXList() objects
The XXXList() classes only ever have a single 'objects' attribute and this is never directly accessed as a dict key, instead all callers use it in list context. Thus the dict compat support can be removed from all these objects Change-Id: I3f8d49d25b99dd0a498dfaad705c6332908cb72f
This commit is contained in:
@@ -149,9 +149,7 @@ class Aggregate(base.NovaPersistentObject, base.NovaObject,
|
||||
return self.metadata.get('availability_zone', None)
|
||||
|
||||
|
||||
# TODO(berrange): Remove NovaObjectDictCompat
|
||||
class AggregateList(base.ObjectListBase, base.NovaObject,
|
||||
base.NovaObjectDictCompat):
|
||||
class AggregateList(base.ObjectListBase, base.NovaObject):
|
||||
# Version 1.0: Initial version
|
||||
# Version 1.1: Added key argument to get_by_host()
|
||||
# Aggregate <= version 1.1
|
||||
|
||||
Reference in New Issue
Block a user