From 60d478e518d63290f110177a31e8f5ffc1c54681 Mon Sep 17 00:00:00 2001 From: Eugene Nikanorov Date: Sun, 19 May 2013 18:01:33 +0400 Subject: [PATCH] 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 --- quantum/api/v2/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), -- 2.45.2