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:
parent
851ebb0ccd
commit
3f75c6b02c
@ -30,6 +30,7 @@ from quantum.openstack.common import policy
|
|||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
_POLICY_PATH = None
|
_POLICY_PATH = None
|
||||||
_POLICY_CACHE = {}
|
_POLICY_CACHE = {}
|
||||||
|
cfg.CONF.import_opt('policy_file', 'quantum.common.config')
|
||||||
|
|
||||||
|
|
||||||
def reset():
|
def reset():
|
||||||
|
Loading…
Reference in New Issue
Block a user