From: Eugene Nikanorov Date: Sun, 19 May 2013 14:01:33 +0000 (+0400) Subject: Fix logic in api.v2.base.Controller._is_visible X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=60d478e518d63290f110177a31e8f5ffc1c54681;p=openstack-build%2Fneutron-build.git 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 --- diff --git a/quantum/api/v2/base.py b/quantum/api/v2/base.py index e40e7013b..0f6675540 100644 --- a/quantum/api/v2/base.py +++ b/quantum/api/v2/base.py @@ -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"),