summaryrefslogtreecommitdiffstats
path: root/nova/objects/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/objects/base.py')
-rw-r--r--nova/objects/base.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/objects/base.py b/nova/objects/base.py
index 4f973de0c..c6dc8cc1a 100644
--- a/nova/objects/base.py
+++ b/nova/objects/base.py
@@ -367,6 +367,14 @@ class NovaObject(object):
"""
return self[key]
+ def update(self, updates):
+ """For backwards-compatibility with dict-base objects.
+
+ NOTE(danms): May be removed in the future.
+ """
+ for key, value in updates.items():
+ self[key] = value
+
class ObjectListBase(object):
"""Mixin class for lists of objects.