)]}'
{"keystone/catalog/controllers.py":[{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"9fcf61118a183dd1d1184434beb46d6b873663a7","unresolved":false,"context_lines":[{"line_number":280,"context_line":"                self.catalog_api.get_region(endpoint[\u0027region_id\u0027])"},{"line_number":281,"context_line":"            except exception.RegionNotFound:"},{"line_number":282,"context_line":"                region \u003d dict(id\u003dendpoint[\u0027region_id\u0027])"},{"line_number":283,"context_line":"                self.catalog_api.create_region(region)"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"        return endpoint"},{"line_number":286,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_4ebd2402","line":283,"updated":"2014-09-08 18:03:18.000000000","message":"same in v3 controller layer","commit_id":"9a4f52970e9b7622b26ec292e223a0b60c6370ef"},{"author":{"_account_id":4,"name":"Dolph Mathews","email":"dolph.mathews@gmail.com","username":"dolph"},"change_message_id":"9fcf61118a183dd1d1184434beb46d6b873663a7","unresolved":false,"context_lines":[{"line_number":289,"context_line":"    def create_endpoint(self, context, endpoint):"},{"line_number":290,"context_line":"        ref \u003d self._assign_unique_id(self._normalize_dict(endpoint))"},{"line_number":291,"context_line":"        self.catalog_api.get_service(ref[\u0027service_id\u0027])"},{"line_number":292,"context_line":"        ref \u003d self._validate_endpoint_region(ref)"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"        ref \u003d self.catalog_api.create_endpoint(ref[\u0027id\u0027], ref)"},{"line_number":295,"context_line":"        return EndpointV3.wrap_member(context, ref)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_0ec31c8b","line":292,"updated":"2014-09-08 18:03:18.000000000","message":"the same is still being done in v3","commit_id":"9a4f52970e9b7622b26ec292e223a0b60c6370ef"}],"keystone/catalog/core.py":[{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"2819cd46f71826ac823e2edbf4424e3785c68069","unresolved":false,"context_lines":[{"line_number":172,"context_line":"    @notifications.created(_ENDPOINT, public\u003dFalse)"},{"line_number":173,"context_line":"    def create_endpoint(self, endpoint_id, endpoint_ref):"},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"        if \u0027region\u0027 in endpoint_ref:"},{"line_number":176,"context_line":"            try:"},{"line_number":177,"context_line":"                self.get_region(endpoint_ref[\u0027region\u0027])"},{"line_number":178,"context_line":"            except exception.RegionNotFound:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_c89ad56d","line":175,"updated":"2015-02-16 00:54:56.000000000","message":"Should this handle for v3 too by checking region_id?","commit_id":"e79b09e0c280d0bb5938a4f9e98f2b83f9272abf"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"2819cd46f71826ac823e2edbf4424e3785c68069","unresolved":false,"context_lines":[{"line_number":181,"context_line":""},{"line_number":182,"context_line":"        try:"},{"line_number":183,"context_line":"            return self.driver.create_endpoint(endpoint_id, endpoint_ref)"},{"line_number":184,"context_line":"        except exception.RegionNotFound:"},{"line_number":185,"context_line":"            raise exception.ValidationError(attribute\u003d\u0027endpoint region_id\u0027,"},{"line_number":186,"context_line":"                                            target\u003d\u0027region table\u0027)"},{"line_number":187,"context_line":"        except exception.NotFound:"}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_088ced34","line":184,"updated":"2015-02-16 00:54:56.000000000","message":"if we already have the validation above, this exception won\u0027t occur anymore.","commit_id":"e79b09e0c280d0bb5938a4f9e98f2b83f9272abf"}]}
