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:
parent
b4770f476d
commit
60d478e518
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user