Fix logic in api.v2.base.Controller._is_visible

Fix accessing yet unassigned local variable in case
exception is thrown.

fixes bug 1181718

Change-Id: Iea8f0cc252c1d2105cc696d917a347aa10b206a8
This commit is contained in:
Eugene Nikanorov 2013-05-19 18:01:33 +04:00
parent b4770f476d
commit 60d478e518

View File

@ -134,7 +134,7 @@ class Controller(object):
"RESOURCE_ATTRIBUTE_MAP; unable to perform authZ "
"check for attribute %(attr)s"),
{'resource': self._collection,
'attr': attr})
'attr': attr_name})
except exceptions.PolicyRuleNotFound:
LOG.debug(_("Policy rule:%(action)s not found. Assuming no "
"authZ check is defined for %(attr)s"),