]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Define behaviour for properties with None values.
authorSteve Baker <sbaker@redhat.com>
Wed, 3 Jul 2013 03:21:23 +0000 (15:21 +1200)
committerSteve Baker <sbaker@redhat.com>
Mon, 8 Jul 2013 22:02:15 +0000 (10:02 +1200)
commit15bdfe029eb9274fd37ad2d6e8ec3001ec6eaf8e
tree8bca3bea84a924577345cac8825bea5017fb131c
parentd47fb8e4133dff2aed2c91869f83753a09d7ebfa
Define behaviour for properties with None values.

Now that Ref and Fn::GetAtt might return None values, behaviour for
properties with None values needs definition.

This change will treat a None value in the following way:
- if there is a default in the schema, that value will be used
- otherwise a default is used depending on the type ('', False, 0, [] {})

Fixes bug: #1192142

Change-Id: I59ae32c1c32b1bfede7d775aa845cd14246040e1
heat/engine/properties.py
heat/tests/test_properties.py