]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Improve the identifier class for Resources
authorZane Bitter <zbitter@redhat.com>
Thu, 22 Nov 2012 10:06:56 +0000 (11:06 +0100)
committerZane Bitter <zbitter@redhat.com>
Thu, 22 Nov 2012 11:03:30 +0000 (12:03 +0100)
commitfada8b3b938c5f4b8107adfeef3c8b8b0a0c4702
tree0547cfab764e60844fd1a44a8198cc40485eef39
parent18010f923b3860a16f2da485d5ac6380badec9e0
Improve the identifier class for Resources

Enable the resource name to be retrieved from an object. Also allow a
ResourceIdentifier to be constructed from only the data passed through the
RPC API. This means we can use a single format for identifiers, but still
be able to extract important information such as the stack identifier and
resource name.

Change-Id: Ie9122cb1a835b30eb8e0713a9d5cdcb4a386eda7
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/api/openstack/v1/resources.py
heat/engine/identifier.py
heat/engine/resources/resource.py
heat/tests/test_api_openstack_v1.py
heat/tests/test_identifier.py