]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Add a helper class for metadata
authorZane Bitter <zbitter@redhat.com>
Tue, 3 Jul 2012 16:17:05 +0000 (18:17 +0200)
committerZane Bitter <zbitter@redhat.com>
Wed, 11 Jul 2012 15:20:42 +0000 (11:20 -0400)
commit139fe4009e8776a3e56ed5023e9745577caacc4e
tree03e5ae9417ad6655047983866c774959f8fe0485
parent7e9d745ee6e326110f155dbb3cac71f112b0ec42
Add a helper class for metadata

With this patch we can now access resource metadata through the 'metadata'
attribute and have it always fetch the latest data from the database. This
reduces the chance of accidentally accessing stale data (due to the
metadata being updated in a different database session via the metadata
server) by providing a single implementation to access it through.

Change-Id: Id411ae891d3eace746d16008a7d58bb19b4f652d
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/engine/instance.py
heat/engine/resources.py
heat/engine/wait_condition.py
heat/tests/test_resource.py