]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Return None for physical resource name during validation
authorZane Bitter <zbitter@redhat.com>
Tue, 18 Jun 2013 08:41:40 +0000 (10:41 +0200)
committerZane Bitter <zbitter@redhat.com>
Tue, 18 Jun 2013 08:41:40 +0000 (10:41 +0200)
commit40c4b44d02717b2aa8f420ca516ce662d2a1b978
tree6c9d9335c209fcf117cbc01ca2bda0bb59090ad7
parent388fc1bbca8112667948010600f372af095071a7
Return None for physical resource name during validation

During template validation, the resources have not been stored in the
database. Therefore any resources that return self.physical_resource_name()
in either FnGetRef() or FnGetAtt() would cause assertions whenever either
of those functions were called during validation. Instead, return None from
physical_resource_name() in this phase, as we do for other data that is not
available yet during validation.

Fixes bug #1191931

Change-Id: I1a5b17557ae1ca2600fb930e74eb5248c82e0326
heat/engine/resource.py