)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"21c00304c442ed462dff2af156ad2c9be7dda5d8","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":12,"id":"9ccf5854_c367f008","updated":"2023-03-11 02:10:51.000000000","message":"no activity for long time, and as this repo is almost inactive I will propose it to retire soon but if you would like to maintain it, ping us on #openstack-qa IRC OFTC channel","commit_id":"be5e44635adf8eef47ddd8ba3865118503fa0cc1"}],"patrole_tempest_plugin/config.py":[{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"2bb08862c53767e51a646e8c88c3c8d47bbd5a18","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    * policy_file_ext"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"\"\"\"),"},{"line_number":56,"context_line":"    cfg.StrOpt(\u0027policy_file_ext\u0027,"},{"line_number":57,"context_line":"               default\u003d\u0027json\u0027,"},{"line_number":58,"context_line":"               choices\u003d[\u0027json\u0027, \u0027yaml\u0027],"},{"line_number":59,"context_line":"               help\u003d\"\"\"Policy file extension appended to each custom policy"},{"line_number":60,"context_line":"file specified in `custom_policy_files`."},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Possible values:"},{"line_number":63,"context_line":"    * A string value that is either \u0027json\u0027 or \u0027yaml\u0027."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"Related Options:"},{"line_number":66,"context_line":"    * custom_policy_files"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"\"\"\"),"},{"line_number":69,"context_line":"    cfg.StrOpt(\u0027cinder_policy_file\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_c6543157","line":66,"range":{"start_line":56,"start_character":0,"end_line":66,"end_character":25},"updated":"2017-08-19 07:08:24.000000000","message":"This should be removed as it adds needless complexity. Just enforce the existence of a file extension for each path in custom_policy_files and verify that it is valid (json, yaml) and read file accordingly.","commit_id":"d4724cd3306c558acc9538617670b9cb46c5b1c4"}],"patrole_tempest_plugin/rbac_policy_parser.py":[{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"9c4d5a6b5fd240f9799de4052944758d3fa513e2","unresolved":false,"context_lines":[{"line_number":147,"context_line":"                if file_ext in supported_extensions[1:]:"},{"line_number":148,"context_line":"                    file_policy_data \u003d yaml.safe_load(temp_file_data)"},{"line_number":149,"context_line":"                elif file_ext \u003d\u003d supported_extensions[0]:"},{"line_number":150,"context_line":"                    file_policy_data \u003d json.loads(temp_file_data)"},{"line_number":151,"context_line":"            except (IOError, ValueError, yaml.YAMLError) as e:"},{"line_number":152,"context_line":"                msg \u003d \"Failed to read policy file for service. \""},{"line_number":153,"context_line":"                if isinstance(e, IOError):"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f436f4f_b8b61d3e","line":150,"updated":"2017-08-17 14:05:02.000000000","message":"else LOG that the file extension is unsupported.","commit_id":"45851ca82e614327bd1f1157db27692d951b1ff9"},{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"9c4d5a6b5fd240f9799de4052944758d3fa513e2","unresolved":false,"context_lines":[{"line_number":154,"context_line":"                    msg +\u003d \"Please check that policy path exists.\""},{"line_number":155,"context_line":"                else:"},{"line_number":156,"context_line":"                    msg +\u003d ("},{"line_number":157,"context_line":"                        \"%s file must be valid YAML or JSON file and end \""},{"line_number":158,"context_line":"                        \"in a supported extension: %s.\" % ("},{"line_number":159,"context_line":"                            file_ext[1:].upper() if file_ext else \u0027Unknown\u0027,"},{"line_number":160,"context_line":"                            supported_extensions))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f436f4f_58797191","line":157,"range":{"start_line":157,"start_character":25,"end_line":157,"end_character":27},"updated":"2017-08-17 14:05:02.000000000","message":"\"Policy\" here would sound better.","commit_id":"45851ca82e614327bd1f1157db27692d951b1ff9"},{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"cd544af51d54b73f82cee092d0fcfad3b4f0345c","unresolved":false,"context_lines":[{"line_number":131,"context_line":"                \"Policy path \u0027%s\u0027 in `[patrole] custom_policy_files` must \""},{"line_number":132,"context_line":"                \"match \u0027%s\u0027 regular expression.\" % ("},{"line_number":133,"context_line":"                    path, cls.POLICY_FILE_PATTERN.pattern))"},{"line_number":134,"context_line":"        path \u003d path % service"},{"line_number":135,"context_line":"        if not path.endswith(\u0027.\u0027):"},{"line_number":136,"context_line":"            path +\u003d \u0027.\u0027"},{"line_number":137,"context_line":"        path +\u003d CONF.patrole.policy_file_ext"}],"source_content_type":"text/x-python","patch_set":2,"id":"9f436f4f_92066420","line":134,"range":{"start_line":134,"start_character":15,"end_line":134,"end_character":29},"updated":"2017-08-19 04:23:47.000000000","message":"Need to catch TypeError just in case.","commit_id":"d4724cd3306c558acc9538617670b9cb46c5b1c4"}]}
