Merge "Avoid load real policy from policy.d when using fake policy fixture"

This commit is contained in:
Jenkins 2015-04-02 15:07:05 +00:00 committed by Gerrit Code Review
commit 430c92e3cd

View File

@ -79,6 +79,7 @@ class PolicyFixture(RealPolicyFixture):
'policy.json')
with open(self.policy_file, 'w') as f:
f.write(fake_policy.policy_data)
CONF.set_override('policy_dirs', [])
class RoleBasedPolicyFixture(RealPolicyFixture):