)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"37c433ec8d5dbc919ac5c29b7f4bbac0fc54885a","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Make generic driver update export location after manage operation"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Recently was added support of manage/unmanage operations to deneric driver."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"But it does not update export locations according to server info."},{"line_number":12,"context_line":"So, make driver update it and add appropriate change to share manager to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a80dd14_85885023","line":9,"updated":"2015-03-19 18:16:37.000000000","message":"s/deneric/generic/\n\nAnd perhaps some rewording:\nRecently, support for manage/unmanage operations was added to the generic driver.","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a31908d6eacec538b1e6a1d125abd54d476100cc","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Make generic driver update export location after manage operation"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Recently was added support of manage/unmanage operations to deneric driver."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"But it does not update export locations according to server info."},{"line_number":12,"context_line":"So, make driver update it and add appropriate change to share manager to"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a80dd14_edc0f44b","line":9,"in_reply_to":"9a80dd14_85885023","updated":"2015-03-20 10:20:15.000000000","message":"Oh, nice catch. Good that this nit is not in topic of commit.","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"}],"manila/share/drivers/generic.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"37c433ec8d5dbc919ac5c29b7f4bbac0fc54885a","unresolved":false,"context_lines":[{"line_number":872,"context_line":"    def get_exports_for_share(self, server, old_export_location):"},{"line_number":873,"context_line":"        self._verify_server_has_public_address(server)"},{"line_number":874,"context_line":"        path \u003d old_export_location.split(\u0027:\u0027)[-1]"},{"line_number":875,"context_line":"        return [\u0027:\u0027.join([server[\u0027public_address\u0027], path])]"},{"line_number":876,"context_line":""},{"line_number":877,"context_line":"    def get_share_path_by_export_location(self, server, export_location):"},{"line_number":878,"context_line":"        return export_location.split(\u0027:\u0027)[-1]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_6865f1ad","line":875,"updated":"2015-03-19 18:16:37.000000000","message":"Why list instead of tuple for the join param?  [server[\u0027public_address\u0027], path]","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"3717b3ae803c40d1d2779165ab12880cebc33e36","unresolved":false,"context_lines":[{"line_number":872,"context_line":"    def get_exports_for_share(self, server, old_export_location):"},{"line_number":873,"context_line":"        self._verify_server_has_public_address(server)"},{"line_number":874,"context_line":"        path \u003d old_export_location.split(\u0027:\u0027)[-1]"},{"line_number":875,"context_line":"        return [\u0027:\u0027.join([server[\u0027public_address\u0027], path])]"},{"line_number":876,"context_line":""},{"line_number":877,"context_line":"    def get_share_path_by_export_location(self, server, export_location):"},{"line_number":878,"context_line":"        return export_location.split(\u0027:\u0027)[-1]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_dfd74421","line":875,"in_reply_to":"9a80dd14_4ddbc04e","updated":"2015-03-20 16:31:21.000000000","message":"Sure it shouldn\u0027t matter.  I have tried to figure out which is better in the past and it seems like the immutable tuple can be faster (not significantly here) and some say use tuple like struct (not a pythonic thing to say) and use list for a modifiable set of like items.  So tuple might be a tiny bit better although that is speculative and based on questionable resources.  So I was really asking to see if you had a better answer such as \"it looks better with square brackets\" -- and I\u0027d agree.  I was seeking pythonic enlightenment and you gave me \"It is just so\" (enlightenment turned up a notch).  Thanks.","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a31908d6eacec538b1e6a1d125abd54d476100cc","unresolved":false,"context_lines":[{"line_number":872,"context_line":"    def get_exports_for_share(self, server, old_export_location):"},{"line_number":873,"context_line":"        self._verify_server_has_public_address(server)"},{"line_number":874,"context_line":"        path \u003d old_export_location.split(\u0027:\u0027)[-1]"},{"line_number":875,"context_line":"        return [\u0027:\u0027.join([server[\u0027public_address\u0027], path])]"},{"line_number":876,"context_line":""},{"line_number":877,"context_line":"    def get_share_path_by_export_location(self, server, export_location):"},{"line_number":878,"context_line":"        return export_location.split(\u0027:\u0027)[-1]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_4ddbc04e","line":875,"in_reply_to":"9a80dd14_6865f1ad","updated":"2015-03-20 10:20:15.000000000","message":"Why should it be vice versa?\n\nThe result will be the same, then why should be one than another?\n\nIt is just so, because one of two possible cases should have been chosen.","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"91ad05f509ef7a9b5e2476a111682755c0846535","unresolved":false,"context_lines":[{"line_number":872,"context_line":"    def get_exports_for_share(self, server, old_export_location):"},{"line_number":873,"context_line":"        self._verify_server_has_public_address(server)"},{"line_number":874,"context_line":"        path \u003d old_export_location.split(\u0027:\u0027)[-1]"},{"line_number":875,"context_line":"        return [\u0027:\u0027.join([server[\u0027public_address\u0027], path])]"},{"line_number":876,"context_line":""},{"line_number":877,"context_line":"    def get_share_path_by_export_location(self, server, export_location):"},{"line_number":878,"context_line":"        return export_location.split(\u0027:\u0027)[-1]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_ffcec82b","line":875,"in_reply_to":"9a80dd14_dfd74421","updated":"2015-03-20 16:41:54.000000000","message":"Mark, here is just 2 (TWO) elements in a container (list/tuple). Just two. Constantly. So, what \"faster\" can be expected in this case? I am sorry for not satisfying your expectations, but in THIS dark room no black cat. Sorry. \u003d)","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"37c433ec8d5dbc919ac5c29b7f4bbac0fc54885a","unresolved":false,"context_lines":[{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    @staticmethod"},{"line_number":992,"context_line":"    def _get_share_group_name_from_export_location(export_location):"},{"line_number":993,"context_line":"        if \u0027/\u0027 in export_location and \u0027\\\\\u0027 in export_location:"},{"line_number":994,"context_line":"            pass"},{"line_number":995,"context_line":"        elif export_location.startswith(\u0027\\\\\\\\\u0027):"},{"line_number":996,"context_line":"            return export_location.split(\u0027\\\\\u0027)[-1]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_c856dd5d","line":993,"updated":"2015-03-19 18:16:37.000000000","message":"Maybe the code and log message would be more self-explanatory if an error was raised here with reason saying mixed slashes, while the fall-thru error is different.","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a31908d6eacec538b1e6a1d125abd54d476100cc","unresolved":false,"context_lines":[{"line_number":990,"context_line":""},{"line_number":991,"context_line":"    @staticmethod"},{"line_number":992,"context_line":"    def _get_share_group_name_from_export_location(export_location):"},{"line_number":993,"context_line":"        if \u0027/\u0027 in export_location and \u0027\\\\\u0027 in export_location:"},{"line_number":994,"context_line":"            pass"},{"line_number":995,"context_line":"        elif export_location.startswith(\u0027\\\\\\\\\u0027):"},{"line_number":996,"context_line":"            return export_location.split(\u0027\\\\\u0027)[-1]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_0d39c8a3","line":993,"in_reply_to":"9a80dd14_c856dd5d","updated":"2015-03-20 10:20:15.000000000","message":"Could be own message. But there is no real need in it. Common error message, IMHO, is enough here.","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"7723946da129bad29a32fd3d13fc9343621647de","unresolved":false,"context_lines":[{"line_number":992,"context_line":"    def _get_share_group_name_from_export_location(export_location):"},{"line_number":993,"context_line":"        if \u0027/\u0027 in export_location and \u0027\\\\\u0027 in export_location:"},{"line_number":994,"context_line":"            pass"},{"line_number":995,"context_line":"        elif export_location.startswith(\u0027\\\\\\\\\u0027):"},{"line_number":996,"context_line":"            return export_location.split(\u0027\\\\\u0027)[-1]"},{"line_number":997,"context_line":"        elif export_location.startswith(\u0027//\u0027):"},{"line_number":998,"context_line":"            return export_location.split(\u0027/\u0027)[-1]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_cb0b37d3","line":995,"updated":"2015-03-19 18:01:49.000000000","message":"This might be simpler with a regex.\n\nhttps://review.openstack.org/#/c/165414/1/manila/share/drivers/netapp/dataontap/protocols/cifs_cmode.py","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a31908d6eacec538b1e6a1d125abd54d476100cc","unresolved":false,"context_lines":[{"line_number":992,"context_line":"    def _get_share_group_name_from_export_location(export_location):"},{"line_number":993,"context_line":"        if \u0027/\u0027 in export_location and \u0027\\\\\u0027 in export_location:"},{"line_number":994,"context_line":"            pass"},{"line_number":995,"context_line":"        elif export_location.startswith(\u0027\\\\\\\\\u0027):"},{"line_number":996,"context_line":"            return export_location.split(\u0027\\\\\u0027)[-1]"},{"line_number":997,"context_line":"        elif export_location.startswith(\u0027//\u0027):"},{"line_number":998,"context_line":"            return export_location.split(\u0027/\u0027)[-1]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a80dd14_edb1d444","line":995,"in_reply_to":"9a80dd14_cb0b37d3","updated":"2015-03-20 10:20:15.000000000","message":"I agree that It is one of possible approaches.\n\nInteresting thing, your example allows mixing of slashes and backslashes like \"//foo\\bar\". So, I guess you have bug there.\n\nIn my case it is simpler to maintain, also, set of \"success\" cases in this variant is different than in yours. Whether it is good or not is different question...","commit_id":"d47e03779cc92d2ab94d5436de2ffae5db3b028e"}]}
