)]}'
{"designate/policy.py":[{"author":{"_account_id":741,"name":"Kiall Mac Innes","email":"kiall@macinnes.ie","username":"kiall"},"change_message_id":"854e1a55e1c578d5b9a0d54c90a8e61757906192","unresolved":false,"context_lines":[{"line_number":43,"context_line":"]"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"CONF \u003d cfg.CONF"},{"line_number":46,"context_line":"CONF.register_opts(policy_opts)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9a80dd14_5c1d5861","line":46,"updated":"2015-03-13 12:55:24.000000000","message":"Rather than copying the opts in here, we should instead call `oslo_policy.opts.set_defaults(CONF)`, that way, as new options are added we just get them automatically.\n\nAdditionally - the opts have been moved into a config group - oslo_policy - we should update our sample config to show them in this group.\n\nSee https://github.com/openstack/oslo.policy/blob/master/oslo_policy/opts.py","commit_id":"9840b2d9dfb8fa49dafa51beb2ff701cb99782dc"},{"author":{"_account_id":741,"name":"Kiall Mac Innes","email":"kiall@macinnes.ie","username":"kiall"},"change_message_id":"89568c77fa2a5a8e4d08f64bb497066a09e81153","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"def init(default_rule\u003dNone):"},{"line_number":66,"context_line":"    policy_files \u003d utils.find_config(cfg.CONF[\u0027oslo_policy\u0027].policy_file)"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"    if len(policy_files) \u003d\u003d 0:"},{"line_number":69,"context_line":"        msg \u003d \u0027Unable to determine appropriate policy json file\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_a66d5f34","line":66,"updated":"2015-03-13 14:54:01.000000000","message":"Nit: Since we have\tCONF \u003d cfg.CONF above, we can use the shorthand.","commit_id":"1b7405fc96ad6f1d37dd79ec20391fa28309d44d"},{"author":{"_account_id":741,"name":"Kiall Mac Innes","email":"kiall@macinnes.ie","username":"kiall"},"change_message_id":"89568c77fa2a5a8e4d08f64bb497066a09e81153","unresolved":false,"context_lines":[{"line_number":78,"context_line":"    global _ENFORCER"},{"line_number":79,"context_line":"    if not _ENFORCER:"},{"line_number":80,"context_line":"        LOG.debug(\"Enforcer is not present, recreating.\")"},{"line_number":81,"context_line":"        _ENFORCER \u003d policy.Enforcer(cfg.CONF)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    _ENFORCER.set_rules(rules)"},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_c66a5319","line":81,"updated":"2015-03-13 14:54:01.000000000","message":"Nit: Since we have\tCONF \u003d cfg.CONF above, we can use the shorthand.","commit_id":"1b7405fc96ad6f1d37dd79ec20391fa28309d44d"}]}
