)]}'
{"oslo_policy/opts.py":[{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"f45923a82f39ed3317fdf27143829c9e3acaf6de","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    _register(conf)"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    if policy_file is not None:"},{"line_number":123,"context_line":"        cfg.set_defaults(_options, policy_file\u003dpolicy_file)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_22efceb2","line":123,"updated":"2018-12-06 20:18:11.000000000","message":"This options are being registered on line 120, so your explanation of the issue doesn\u0027t make the problem clear to me.","commit_id":"3c18f3434d2e05150ad0b20b5435b9ee1db39407"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"e040af8cee02273756eed76d82039f863a7af66e","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    _register(conf)"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    if policy_file is not None:"},{"line_number":123,"context_line":"        cfg.set_defaults(_options, policy_file\u003dpolicy_file)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_9d9e4366","line":123,"in_reply_to":"3f79a3b5_22efceb2","updated":"2018-12-06 21:24:22.000000000","message":"If you call set_default on the conf object then it only overrides the default for that conf object. If you call the module-level set_defaults, then it modifies the opt itself so the changes show up even if you aren\u0027t reading it via a conf object. Since the config generator just works with a list of config opts only the latter will affect the documented default.\n\nconf.set_default: https://github.com/openstack/oslo.config/blob/b5df53543fd3edbc369cacbdd1c3038bdce9085e/oslo_config/cfg.py#L2433\n\ncfg.set_defaults: https://github.com/openstack/oslo.config/blob/b5df53543fd3edbc369cacbdd1c3038bdce9085e/oslo_config/cfg.py#L391","commit_id":"3c18f3434d2e05150ad0b20b5435b9ee1db39407"}]}
