summaryrefslogtreecommitdiff
path: root/heat/common/policy.py
diff options
context:
space:
mode:
Diffstat (limited to 'heat/common/policy.py')
-rw-r--r--heat/common/policy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/heat/common/policy.py b/heat/common/policy.py
index 7f53b38f7..bfcadbaf4 100644
--- a/heat/common/policy.py
+++ b/heat/common/policy.py
@@ -188,6 +188,6 @@ class ResourceEnforcer(Enforcer):
def enforce_stack(self, stack, scope=None, target=None,
is_registered_policy=False):
- for res in stack.resources.values():
- self.enforce(stack.context, res.type(), scope=scope, target=target,
+ for res_type in stack.defn.all_resource_types():
+ self.enforce(stack.context, res_type, scope=scope, target=target,
is_registered_policy=is_registered_policy)