From 3f75c6b02c1171959727687700042512c450d59d Mon Sep 17 00:00:00 2001 From: Alessio Ababilov Date: Tue, 5 Feb 2013 15:53:38 +0200 Subject: [PATCH] Use policy_file parameter in quantum.policy quantum.policy depends on configuration parameter `policy_file' that is defined in quantum.common.context. Tests from tests/unit/test_policy.py fail without this import. Fixes: bug #1116263 Change-Id: Iba4792acb0fb6b34b4ebc99fec7bc729cdb306da --- quantum/policy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/quantum/policy.py b/quantum/policy.py index 48e0e0b1e4..84490132e2 100644 --- a/quantum/policy.py +++ b/quantum/policy.py @@ -30,6 +30,7 @@ from quantum.openstack.common import policy LOG = logging.getLogger(__name__) _POLICY_PATH = None _POLICY_CACHE = {} +cfg.CONF.import_opt('policy_file', 'quantum.common.config') def reset():