On 2014-02-25 02:00, Tian, Shuangtai wrote: 

> Hi, Stackers 
> 
> When I init a Enforcer class with rules, I find the rules will rewrite by 
> configure policy rules, because the policy file is modified , 
> 
> the load rules always try to load the rules from the cache or configure file 
> when checks the policy in the enforce function, and 
> 
> force to rewrite the rules always using the configure policy. 
> 
> I think this problem also exists when we use the set_rules to set rules 
> before we use the enforce to load rules in the first time. 
> 
> Anyone also meets this problem, or if the way I used is wrong? I proposed a 
> patch to this problem : https://review.openstack.org/#/c/72848/ [1] 
> 
> Best regards, 
> 
> Tian, Shuangtai

 I don't think you're doing anything wrong. You can see I worked around
the same issue in the test cases when I was working on the Oslo parallel
testing:
https://review.openstack.org/#/c/70483/1/tests/unit/test_policy.py

Your proposed change looks reasonable to me. I'd probably like to see it
used to remove some of the less pleasant parts of my change, but I'll
leave detailed feedback on the review.

Thanks!

-Ben

 

Links:
------
[1] https://review.openstack.org/#/c/72848/
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to