]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Always convert AllowedValues to a list
authorZane Bitter <zbitter@redhat.com>
Thu, 25 Jul 2013 09:33:41 +0000 (11:33 +0200)
committerZane Bitter <zbitter@redhat.com>
Thu, 25 Jul 2013 09:33:41 +0000 (11:33 +0200)
commit096c08cdc05f925aa995e424cd0b1ca8f5d18b77
treedfeed6a91c51760211e602e0b3d96e527039674c
parent08e04e6733e69080743521c1673c53a96ae42907
Always convert AllowedValues to a list

Passing e.g. a string as the AllowedValues list can appear to work, since
str.__contains__() performs a substring match. It's better to fail fast, so
convert AllowedValues to a list regardless of its initial type.

Change-Id: I74783e6a7c1743ead3f086116dd3850afeb7a028
heat/engine/parameters.py
heat/engine/properties.py