From 64bb5e2f59ea2f37b3f5ab19b792bf36ce342a2f Mon Sep 17 00:00:00 2001 From: Alexander Gordeev Date: Mon, 5 Aug 2013 13:15:02 +0400 Subject: Fix wrong argument in openstack common policy Fully fixes wrong param passed to the exception constructor from oslo.config occurring in Enforcer._get_policy_path Closes-Bug: #1208397 Change-Id: I28b11178808b447555e6e6e63383904749c77b18 --- openstack/common/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack/common') diff --git a/openstack/common/policy.py b/openstack/common/policy.py index 02335ca..ad9a90c 100644 --- a/openstack/common/policy.py +++ b/openstack/common/policy.py @@ -221,7 +221,7 @@ class Enforcer(object): if policy_file: return policy_file - raise cfg.ConfigFilesNotFoundError(path=CONF.policy_file) + raise cfg.ConfigFilesNotFoundError((CONF.policy_file,)) def enforce(self, rule, target, creds, do_raise=False, exc=None, *args, **kwargs): -- cgit