]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fix policy checks for users without policies
authorTomas Sedovic <tomas@sedovic.cz>
Wed, 13 Feb 2013 10:10:53 +0000 (11:10 +0100)
committerTomas Sedovic <tomas@sedovic.cz>
Wed, 13 Feb 2013 10:10:53 +0000 (11:10 +0100)
commit9c3d6e77f2dc241c94803da025aa64a7a7cefd46
tree12813f864752c0c62d01369cab317d682524803c
parent44ea0380041fd353a22f3d99a266d9cd3399ea5c
Fix policy checks for users without policies

When the User resource doesn't have the `Policies` property specified,
the policy checking code raised an error because it tried to iterate
over `None`.

Change-Id: I1ad0a051c837744d8ec0a343929918c92fa78437
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
heat/engine/resources/user.py