summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoren Hansen <soren.hansen@rackspace.com>2010-06-30 16:46:47 +0200
committerSoren Hansen <soren.hansen@rackspace.com>2010-06-30 16:46:47 +0200
commit7ce77bfffca575e0136807779d98140280c7fa90 (patch)
tree12ea7e469f61a13d2d638e8d69137f0dfbf269c0
parent00971feed32d22ae9bc63aea716ecf4e972aee32 (diff)
downloadnova-7ce77bfffca575e0136807779d98140280c7fa90.tar.gz
nova-7ce77bfffca575e0136807779d98140280c7fa90.tar.xz
nova-7ce77bfffca575e0136807779d98140280c7fa90.zip
Add _s instance attribute to Instance class. It's referenced in a bunch of places, but is never set. This is unlikely to be the right fix (why have two attributes pointing to the same object?), but it seems to make ends meet.
-rw-r--r--nova/compute/node.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/compute/node.py b/nova/compute/node.py
index c217056f5..b39a0fe9c 100644
--- a/nova/compute/node.py
+++ b/nova/compute/node.py
@@ -269,6 +269,7 @@ class Instance(object):
data['project_id'] = data['owner_id']
self.datamodel = data
+ self._s = data
size = data.get('instance_type', FLAGS.default_instance_type)
if size not in INSTANCE_TYPES:
raise exception.Error('invalid instance type: %s' % size)