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
This commit is contained in:
Alessio Ababilov 2013-02-05 15:53:38 +02:00
parent 851ebb0ccd
commit 3f75c6b02c

View File

@ -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():