summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-03-29 01:37:00 +0000
committerGerrit Code Review <review@openstack.org>2015-03-29 01:37:00 +0000
commit02cbb2a17dd25d89102b06c53eefa79540aaae78 (patch)
tree285a0ceeaf3ac308bfc5776cc68d4ff157e9f6a0
parent0dd1e32c67edb1d22a7ce86a084c81401b6ea8d2 (diff)
parent22f8f75e563cc1b7682cf028dca5f5016fb4e0bf (diff)
downloadglance-02cbb2a17dd25d89102b06c53eefa79540aaae78.tar.gz
Merge "Make sure the parameter has the consistent meaning"
-rw-r--r--glance/common/property_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glance/common/property_utils.py b/glance/common/property_utils.py
index 9e68cdff3..097b5e53a 100644
--- a/glance/common/property_utils.py
+++ b/glance/common/property_utils.py
@@ -171,8 +171,8 @@ class PropertyRules(object):
def _check_policy(self, property_exp, action, context):
try:
- target = ":".join([property_exp, action])
- self.policy_enforcer.enforce(context, target, {})
+ action = ":".join([property_exp, action])
+ self.policy_enforcer.enforce(context, action, {})
except exception.Forbidden:
return False
return True