)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"1db8b7b0ea1af68997d126c5472e53d3ba713a6c","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     zhangdaolong \u003czhangdaolong@fiberhome.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-04-14 16:04:31 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":" volume handle should be close before exception."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I9a0387fe14d8acc74226575e4b37e9beba4c3b60"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7ffa3b31_156398de","line":7,"range":{"start_line":7,"start_character":47,"end_line":7,"end_character":48},"updated":"2017-04-14 13:31:56.000000000","message":"Summary line should not end with a period.\nThis should be more of a statement of what is being fixed. So something like \"Close volume handles on failure\".\nShould have a more detailed description after the summary explaining what is being fixed.","commit_id":"f1b71448b7fbd3ab7e8869b64616e7c786246f15"}],"cinder/volume/utils.py":[{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"1db8b7b0ea1af68997d126c5472e53d3ba713a6c","unresolved":false,"context_lines":[{"line_number":536,"context_line":"            _(\"Failed to copy volume, source device unavailable.\"))"},{"line_number":537,"context_line":""},{"line_number":538,"context_line":"    if not dest_handle:"},{"line_number":539,"context_line":"        src_handle.close()"},{"line_number":540,"context_line":"        raise exception.DeviceUnavailable("},{"line_number":541,"context_line":"            _(\"Failed to copy volume, destination device unavailable.\"))"},{"line_number":542,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7ffa3b31_755bfc2d","line":539,"updated":"2017-04-14 13:31:56.000000000","message":"I\u0027m not sure we can safely do this. See comment on where this is used:\n\nhttps://github.com/openstack/cinder/blob/a55a6b5c717c0802288ab802a8fbff287a4b6b66/cinder/volume/utils.py#L567","commit_id":"f1b71448b7fbd3ab7e8869b64616e7c786246f15"},{"author":{"_account_id":21135,"name":"zhangdaolong","email":"daodragonzhang@gmail.com","username":"zhangdaolong"},"change_message_id":"af25fb7d2a09dba266c7f82f7b35a0ec851126ea","unresolved":false,"context_lines":[{"line_number":536,"context_line":"            _(\"Failed to copy volume, source device unavailable.\"))"},{"line_number":537,"context_line":""},{"line_number":538,"context_line":"    if not dest_handle:"},{"line_number":539,"context_line":"        src_handle.close()"},{"line_number":540,"context_line":"        raise exception.DeviceUnavailable("},{"line_number":541,"context_line":"            _(\"Failed to copy volume, destination device unavailable.\"))"},{"line_number":542,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7ffa3b31_5f1c21c0","line":539,"in_reply_to":"7ffa3b31_755bfc2d","updated":"2017-04-20 01:06:52.000000000","message":"you are right,but the code above has been judged whether the string.\n------------------------------------\n525 def _copy_volume_with_file(src, dest, size_in_m):\n526     src_handle \u003d src\n527     if isinstance(src, six.string_types):\n528         src_handle \u003d _open_volume_with_path(src, \u0027rb\u0027)\n529 \n530     dest_handle \u003d dest\n531     if isinstance(dest, six.string_types):\n532         dest_handle \u003d _open_volume_with_path(dest, \u0027wb\u0027)","commit_id":"f1b71448b7fbd3ab7e8869b64616e7c786246f15"}]}
