]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix logic in api.v2.base.Controller._is_visible
authorEugene Nikanorov <enikanorov@mirantis.com>
Sun, 19 May 2013 14:01:33 +0000 (18:01 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Sun, 19 May 2013 14:01:33 +0000 (18:01 +0400)
Fix accessing yet unassigned local variable in case
exception is thrown.

fixes bug 1181718

Change-Id: Iea8f0cc252c1d2105cc696d917a347aa10b206a8

quantum/api/v2/base.py

index e40e7013bafbfb9b3db0e26e2aa19bf7707f027a..0f6675540774e48a0d72429a30b9c0b439707464 100644 (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"),