]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fix the way self.properties is checked for a value.
authorAngus Salkeld <asalkeld@redhat.com>
Mon, 27 Aug 2012 04:02:26 +0000 (14:02 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Mon, 27 Aug 2012 04:02:26 +0000 (14:02 +1000)
commit20345dc8c6338d3a90de4e3e9011c94d2327020e
tree61762128610e3ea93f2964e5fda330ef36bebbe9
parent5e41a1ee73f146204e80b0863362fa2eb049541a
Fix the way self.properties is checked for a value.

The following only checks if the key is in the properties, and
all schema keys are, so it is not the way to check if a value
has been set.

if 'DesiredCapacity' in self.properties:
change to:
if self.properties:

Fixes: #199
Change-Id: I6bcb3e74420031532dc249aafe85d5a428d0a80e
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/engine/autoscaling.py
heat/engine/eip.py
heat/engine/security_group.py
heat/engine/user.py