)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"45643a5d63f99463b67456f058a9f6a383fc52b3","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Originally the protocols in the connector factory method were checked"},{"line_number":10,"context_line":"against strings. This change moves those strings out as constants and"},{"line_number":11,"context_line":"now compares against the constants."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I0942c352a8d46fc29565e9555f97f8e9d86cda36"},{"line_number":14,"context_line":"Closes-Bug: #1479355"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a50d1a3_69c6479b","line":12,"updated":"2015-07-29 18:36:01.000000000","message":"You might want to mention that this is mostly important for users of the library like nova and cinder so they don\u0027t have to hard-code the protocol value and risk getting it wrong if os-brick used something else.","commit_id":"f1b163379e35333b2e026dc36279519d73df9294"},{"author":{"_account_id":11803,"name":"Ryan Rossiter","email":"rlrossit@us.ibm.com","username":"rlrossiter"},"change_message_id":"3f430bb9904c0384f67c14275332176f52d172b2","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Originally the protocols in the connector factory method were checked"},{"line_number":10,"context_line":"against strings. This change moves those strings out as constants and"},{"line_number":11,"context_line":"now compares against the constants."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I0942c352a8d46fc29565e9555f97f8e9d86cda36"},{"line_number":14,"context_line":"Closes-Bug: #1479355"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1a4dcd0f_19d4631e","line":12,"in_reply_to":"3a50d1a3_69c6479b","updated":"2015-08-04 14:11:06.000000000","message":"Done","commit_id":"f1b163379e35333b2e026dc36279519d73df9294"}],"os_brick/initiator/connector.py":[{"author":{"_account_id":16839,"name":"Cale Rath","email":"ctrath@us.ibm.com","username":"ctrath"},"change_message_id":"6096df9bf8ec97dbe8cf2ed1bd416787d86b53bd","unresolved":false,"context_lines":[{"line_number":72,"context_line":"HGST \u003d \"HGST\""},{"line_number":73,"context_line":"RBD \u003d \"RBD\""},{"line_number":74,"context_line":"SCALEIO \u003d \"SCALEIO\""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"def _check_multipathd_running(root_helper, enforce_multipath):"},{"line_number":78,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_c3573a58","line":75,"updated":"2015-07-29 18:03:53.000000000","message":"What is the benefit in adding constants here?  I could see if there was a well-defined place for constants, even if it were package scoped.  But, to create a constant in the same class that is used and only used once seems to be overkill to me.","commit_id":"f1b163379e35333b2e026dc36279519d73df9294"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"f8055b648277910aaea3086f9b727babf9b9ac86","unresolved":false,"context_lines":[{"line_number":72,"context_line":"HGST \u003d \"HGST\""},{"line_number":73,"context_line":"RBD \u003d \"RBD\""},{"line_number":74,"context_line":"SCALEIO \u003d \"SCALEIO\""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"def _check_multipathd_running(root_helper, enforce_multipath):"},{"line_number":78,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_d1b90717","line":75,"in_reply_to":"3a50d1a3_a49c710e","updated":"2015-07-30 18:20:14.000000000","message":"The point of this change is so that nova doesn\u0027t have to pass in the hard-coded protocol values, e.g.:\n\nhttp://git.openstack.org/cgit/openstack/nova/tree/nova/virt/libvirt/volume/volume.py#n297\n\nI agree we can\u0027t change the driver_volume_type at this point, because that would break the mapping code in the nova libvirt driver:\n\nhttp://git.openstack.org/cgit/openstack/nova/tree/nova/virt/libvirt/driver.py#n274\n\nBut these aren\u0027t the same thing.","commit_id":"f1b163379e35333b2e026dc36279519d73df9294"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"f847c394107e898dd83ea82343af49e689ee48be","unresolved":false,"context_lines":[{"line_number":72,"context_line":"HGST \u003d \"HGST\""},{"line_number":73,"context_line":"RBD \u003d \"RBD\""},{"line_number":74,"context_line":"SCALEIO \u003d \"SCALEIO\""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"def _check_multipathd_running(root_helper, enforce_multipath):"},{"line_number":78,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_a49c710e","line":75,"in_reply_to":"3a50d1a3_c3573a58","updated":"2015-07-29 20:08:57.000000000","message":"I have to agree here.  cinder volume drivers report the driver_volume_type as the lower case version of these strings, so they would never use them.","commit_id":"f1b163379e35333b2e026dc36279519d73df9294"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"45643a5d63f99463b67456f058a9f6a383fc52b3","unresolved":false,"context_lines":[{"line_number":72,"context_line":"HGST \u003d \"HGST\""},{"line_number":73,"context_line":"RBD \u003d \"RBD\""},{"line_number":74,"context_line":"SCALEIO \u003d \"SCALEIO\""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"def _check_multipathd_running(root_helper, enforce_multipath):"},{"line_number":78,"context_line":"    try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_296a7f81","line":75,"in_reply_to":"3a50d1a3_c3573a58","updated":"2015-07-29 18:36:01.000000000","message":"They live near the code.  Giant constants modules are kind of gross in my opinion, but it\u0027s a matter of style and preference.  I prefer to keep the constants close to the source where they are used.\n\nI\u0027m not sure what \u0027package scoped\u0027 means in this context, these are module scope so they are available for anyone to use.","commit_id":"f1b163379e35333b2e026dc36279519d73df9294"}]}
