)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"2ded95352f8603d7a58af1fc51fab4c9b5ba81c1","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Move non-bridge-related OVSBridge methods to BaseOVS"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch moves veral methods in OVSBridge that don\u0027t really have"},{"line_number":10,"context_line":"anything to do with OVS bridges to BaseOVS where they are a much"},{"line_number":11,"context_line":"better fit. Since OVSBridge inherits from BaseOVS, no modules using"},{"line_number":12,"context_line":"ovs_lib will have to change to support this move."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3a961159_d7d600f1","line":9,"updated":"2014-12-30 08:21:10.000000000","message":"nit: veral -\u003e several","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bbad03251cbbc629a5c7e87cb7bd34b7b79a91d7","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Move non-bridge-related OVSBridge methods to BaseOVS"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch moves veral methods in OVSBridge that don\u0027t really have"},{"line_number":10,"context_line":"anything to do with OVS bridges to BaseOVS where they are a much"},{"line_number":11,"context_line":"better fit. Since OVSBridge inherits from BaseOVS, no modules using"},{"line_number":12,"context_line":"ovs_lib will have to change to support this move."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"3a961159_2e9da30a","line":9,"in_reply_to":"3a961159_d7d600f1","updated":"2015-01-07 17:37:46.000000000","message":"Done","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"d9d373b611b34bd2118e3d27470119ed9e696de3","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Terry Wilson \u003ctwilson@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-01-07 14:43:11 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Move non-bridge-related OVSBridge methods to BaseOVS"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch moves several methods in OVSBridge that don\u0027t really have"},{"line_number":10,"context_line":"anything to do with OVS bridges to BaseOVS where they are a much"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a961159_59c26254","line":7,"updated":"2015-01-11 22:52:05.000000000","message":"This needs to be linked to the proper blueprint.","commit_id":"215557ea00399e0e09411f4fae9e05c792372699"}],"neutron/agent/linux/ovs_lib.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"f3f6f5841e7407fed1dc7a9bb83e82260686b41f","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def get_bridges(self):"},{"line_number":113,"context_line":"        res \u003d self.run_vsctl([\u0027list-br\u0027])"},{"line_number":114,"context_line":"        return res.strip().split(\u0027\\n\u0027) if res else []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def get_bridge_external_bridge_id(self, bridge):"},{"line_number":117,"context_line":"        res \u003d self.run_vsctl([\u0027br-get-external-id\u0027, bridge, \u0027bridge-id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_a17b768a","line":114,"updated":"2014-12-12 04:59:16.000000000","message":"this seems to change the behavior on error.\nis this intentional?","commit_id":"23df40b3935c702d1e069814c217b0c9a247cc81"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"643ecf28e3b41ac8199db6c7ed14603a174f4471","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def get_bridges(self):"},{"line_number":113,"context_line":"        res \u003d self.run_vsctl([\u0027list-br\u0027])"},{"line_number":114,"context_line":"        return res.strip().split(\u0027\\n\u0027) if res else []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def get_bridge_external_bridge_id(self, bridge):"},{"line_number":117,"context_line":"        res \u003d self.run_vsctl([\u0027br-get-external-id\u0027, bridge, \u0027bridge-id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_94006135","line":114,"in_reply_to":"3a961159_036a80ed","updated":"2014-12-12 17:40:46.000000000","message":"If I am not mistaken the older version propagates the exception. It uses excutils.save_and_reraise_exception() so I think YAMAMOTO is right, the behavior differs. You should probably use self.run_vsctl([\u0027list-br\u0027], check_error\u003dTrue)","commit_id":"23df40b3935c702d1e069814c217b0c9a247cc81"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"237aa75aa9574b9cc5f2829cd15cbf1370672c24","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def get_bridges(self):"},{"line_number":113,"context_line":"        res \u003d self.run_vsctl([\u0027list-br\u0027])"},{"line_number":114,"context_line":"        return res.strip().split(\u0027\\n\u0027) if res else []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def get_bridge_external_bridge_id(self, bridge):"},{"line_number":117,"context_line":"        res \u003d self.run_vsctl([\u0027br-get-external-id\u0027, bridge, \u0027bridge-id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_4fd106cc","line":114,"in_reply_to":"3a961159_94006135","updated":"2014-12-12 18:01:48.000000000","message":"Done","commit_id":"23df40b3935c702d1e069814c217b0c9a247cc81"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"1903ca6ae1692b5a8abc9ce407c9721435f40555","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def get_bridges(self):"},{"line_number":113,"context_line":"        res \u003d self.run_vsctl([\u0027list-br\u0027])"},{"line_number":114,"context_line":"        return res.strip().split(\u0027\\n\u0027) if res else []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def get_bridge_external_bridge_id(self, bridge):"},{"line_number":117,"context_line":"        res \u003d self.run_vsctl([\u0027br-get-external-id\u0027, bridge, \u0027bridge-id\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_036a80ed","line":114,"in_reply_to":"3a961159_a17b768a","updated":"2014-12-12 15:24:10.000000000","message":"Technically the old version used to return an empty string, which although it can be used as an iterator (which the output of get_bridges() always is--it wouldn\u0027t return None), returning just one type seemed better.","commit_id":"23df40b3935c702d1e069814c217b0c9a247cc81"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"5b163618afcc547829caa5a5977f059b49563adb","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def get_bridges(self):"},{"line_number":113,"context_line":"        res \u003d self.run_vsctl([\u0027list-br\u0027], check_error\u003dTrue)"},{"line_number":114,"context_line":"        return res.strip().split(\u0027\\n\u0027) if res else []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def get_bridge_external_bridge_id(self, bridge):"},{"line_number":117,"context_line":"        res \u003d self.run_vsctl([\u0027br-get-external-id\u0027, bridge, \u0027bridge-id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_d3a73f09","line":114,"range":{"start_line":114,"start_character":39,"end_line":114,"end_character":53},"updated":"2014-12-15 06:20:01.000000000","message":"is \"if res else []\" still necessary?","commit_id":"53d925fd7f006a2f46caef514d6c39bab6d4b7a2"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"c37d4430cb56876be7814214f76dbfdb3b14866e","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def get_bridges(self):"},{"line_number":113,"context_line":"        res \u003d self.run_vsctl([\u0027list-br\u0027], check_error\u003dTrue)"},{"line_number":114,"context_line":"        return res.strip().split(\u0027\\n\u0027) if res else []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def get_bridge_external_bridge_id(self, bridge):"},{"line_number":117,"context_line":"        res \u003d self.run_vsctl([\u0027br-get-external-id\u0027, bridge, \u0027bridge-id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3a961159_80a1cd47","line":114,"in_reply_to":"3a961159_d3a73f09","updated":"2014-12-15 15:57:55.000000000","message":"Yes. If there are no bridges on the system, the result will still be an empty string, which although it can be used as an iterator, it is a little better to always return a list.","commit_id":"53d925fd7f006a2f46caef514d6c39bab6d4b7a2"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"746136136c9ae7dc40ccbbcf515409b494831343","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def get_bridges(self):"},{"line_number":113,"context_line":"        res \u003d self.run_vsctl([\u0027list-br\u0027], check_error\u003dTrue)"},{"line_number":114,"context_line":"        return res.strip().split(\u0027\\n\u0027) if res else []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def get_bridge_external_bridge_id(self, bridge):"},{"line_number":117,"context_line":"        res \u003d self.run_vsctl([\u0027br-get-external-id\u0027, bridge, \u0027bridge-id\u0027])"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_31f3a60b","line":114,"updated":"2015-01-02 23:06:58.000000000","message":"(No action required) While this line does constitute a change in behavior - returning an empty list rather than a string - it appears safe for all existing clients of this method:\n\nhttps://github.com/openstack/neutron/blob/master/neutron/agent/ovs_cleanup_util.py#L89 (set(\u0027\u0027) \u003d\u003d set([])\n\nhttps://github.com/openstack/neutron/blob/master/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py#L726 (set(\u0027\u0027) \u003d\u003d set([])\n\nhttps://github.com/openstack/neutron/blob/master/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py#L886 (used on line 893 for a membership check, and \u0027val\u0027 in [] \u003d\u003d val in \u0027\u0027 \u003d\u003d False)","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bbad03251cbbc629a5c7e87cb7bd34b7b79a91d7","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def get_bridges(self):"},{"line_number":113,"context_line":"        res \u003d self.run_vsctl([\u0027list-br\u0027], check_error\u003dTrue)"},{"line_number":114,"context_line":"        return res.strip().split(\u0027\\n\u0027) if res else []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def get_bridge_external_bridge_id(self, bridge):"},{"line_number":117,"context_line":"        res \u003d self.run_vsctl([\u0027br-get-external-id\u0027, bridge, \u0027bridge-id\u0027])"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_5d6e2730","line":114,"in_reply_to":"3a961159_31f3a60b","updated":"2015-01-07 17:37:46.000000000","message":"Yeah, previous versions also had comments about this. In effect, on an empty set of bridges, the previous version would actually return an array containing an empty string [\"\"], which wouldn\u0027t be quite right since it actually would iterate.","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb3fdeb12b136a9b7491dd9679ebca8b02c1552","unresolved":false,"context_lines":[{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def get_bridges(self):"},{"line_number":113,"context_line":"        res \u003d self.run_vsctl([\u0027list-br\u0027], check_error\u003dTrue)"},{"line_number":114,"context_line":"        return res.strip().split(\u0027\\n\u0027) if res else []"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    def get_bridge_external_bridge_id(self, bridge):"},{"line_number":117,"context_line":"        res \u003d self.run_vsctl([\u0027br-get-external-id\u0027, bridge, \u0027bridge-id\u0027])"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_780b1c24","line":114,"in_reply_to":"3a961159_31f3a60b","updated":"2015-01-06 10:06:49.000000000","message":"thanks for looking at this","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb3fdeb12b136a9b7491dd9679ebca8b02c1552","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        args \u003d [\"clear\", table_name, record, column]"},{"line_number":127,"context_line":"        self.run_vsctl(args)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def _db_get_map(self, table, record, column, check_error\u003dFalse):"},{"line_number":130,"context_line":"        output \u003d self.db_get_val(table, record, column, check_error\u003dFalse)"},{"line_number":131,"context_line":"        if output:"},{"line_number":132,"context_line":"            return self._db_str_to_map(output)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_38a194f8","line":129,"updated":"2015-01-06 10:06:49.000000000","message":"What\u0027s the reason for prepending this method with an underscore, where it wasn\u0027t in the previous code?","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bbad03251cbbc629a5c7e87cb7bd34b7b79a91d7","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        args \u003d [\"clear\", table_name, record, column]"},{"line_number":127,"context_line":"        self.run_vsctl(args)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def _db_get_map(self, table, record, column, check_error\u003dFalse):"},{"line_number":130,"context_line":"        output \u003d self.db_get_val(table, record, column, check_error\u003dFalse)"},{"line_number":131,"context_line":"        if output:"},{"line_number":132,"context_line":"            return self._db_str_to_map(output)"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_1dcf3f2a","line":129,"in_reply_to":"3a961159_38a194f8","updated":"2015-01-07 17:37:46.000000000","message":"Because it is a function that is not (and should not) be used publicly. It is just a helper function (that will actually go away with the ovsdb interface stuff).","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"746136136c9ae7dc40ccbbcf515409b494831343","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        self.run_vsctl(args)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def _db_get_map(self, table, record, column, check_error\u003dFalse):"},{"line_number":130,"context_line":"        output \u003d self.db_get_val(table, record, column, check_error\u003dFalse)"},{"line_number":131,"context_line":"        if output:"},{"line_number":132,"context_line":"            return self._db_str_to_map(output)"},{"line_number":133,"context_line":"        return {}"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_3141e60b","line":130,"updated":"2015-01-02 23:06:58.000000000","message":"check_error\u003dFalse -\u003e check_error\u003dcheck_error\n\nI\u0027m disappointed that line 323\u0027s call of _db_get_map() with check_error\u003dTrue didn\u0027t trigger a test failure.","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bbad03251cbbc629a5c7e87cb7bd34b7b79a91d7","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        self.run_vsctl(args)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def _db_get_map(self, table, record, column, check_error\u003dFalse):"},{"line_number":130,"context_line":"        output \u003d self.db_get_val(table, record, column, check_error\u003dFalse)"},{"line_number":131,"context_line":"        if output:"},{"line_number":132,"context_line":"            return self._db_str_to_map(output)"},{"line_number":133,"context_line":"        return {}"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_5d78e7c3","line":130,"in_reply_to":"3a961159_3141e60b","updated":"2015-01-07 17:37:46.000000000","message":"Done","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"746136136c9ae7dc40ccbbcf515409b494831343","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        if output:"},{"line_number":138,"context_line":"            return output.rstrip(\"\\n\\r\")"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def _db_str_to_map(self, full_str):"},{"line_number":141,"context_line":"        list \u003d full_str.strip(\"{}\").split(\", \")"},{"line_number":142,"context_line":"        ret \u003d {}"},{"line_number":143,"context_line":"        for e in list:"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_f1367eb3","line":140,"updated":"2015-01-02 23:06:58.000000000","message":"Given that this method doesn\u0027t make use of instance data, consider making it a static method.","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bbad03251cbbc629a5c7e87cb7bd34b7b79a91d7","unresolved":false,"context_lines":[{"line_number":137,"context_line":"        if output:"},{"line_number":138,"context_line":"            return output.rstrip(\"\\n\\r\")"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"    def _db_str_to_map(self, full_str):"},{"line_number":141,"context_line":"        list \u003d full_str.strip(\"{}\").split(\", \")"},{"line_number":142,"context_line":"        ret \u003d {}"},{"line_number":143,"context_line":"        for e in list:"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_281e7b5f","line":140,"in_reply_to":"3a961159_f1367eb3","updated":"2015-01-07 17:37:46.000000000","message":"Given that it is only useful in the case of parsing a map retrieved from the db, i.e. the _db_get_map function, I\u0027ve just nested it in _db_get_map.","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"512e6f243590d3b8808a06ca44e98e06653be77d","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        list \u003d full_str.strip(\"{}\").split(\", \")"},{"line_number":142,"context_line":"        ret \u003d {}"},{"line_number":143,"context_line":"        for e in list:"},{"line_number":144,"context_line":"            if e.find(\"\u003d\") \u003d\u003d -1:"},{"line_number":145,"context_line":"                continue"},{"line_number":146,"context_line":"            arr \u003d e.split(\"\u003d\")"},{"line_number":147,"context_line":"            ret[arr[0]] \u003d arr[1].strip(\"\\\"\")"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_43b94178","line":144,"updated":"2015-01-04 21:48:08.000000000","message":"the following is more pythonic:\n\n  if \"\u003d\" not in e:","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bbad03251cbbc629a5c7e87cb7bd34b7b79a91d7","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        list \u003d full_str.strip(\"{}\").split(\", \")"},{"line_number":142,"context_line":"        ret \u003d {}"},{"line_number":143,"context_line":"        for e in list:"},{"line_number":144,"context_line":"            if e.find(\"\u003d\") \u003d\u003d -1:"},{"line_number":145,"context_line":"                continue"},{"line_number":146,"context_line":"            arr \u003d e.split(\"\u003d\")"},{"line_number":147,"context_line":"            ret[arr[0]] \u003d arr[1].strip(\"\\\"\")"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_08529f12","line":144,"in_reply_to":"3a961159_43b94178","updated":"2015-01-07 17:37:46.000000000","message":"I was just moving the function, but I can go ahead and change this.","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"512e6f243590d3b8808a06ca44e98e06653be77d","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        for e in list:"},{"line_number":144,"context_line":"            if e.find(\"\u003d\") \u003d\u003d -1:"},{"line_number":145,"context_line":"                continue"},{"line_number":146,"context_line":"            arr \u003d e.split(\"\u003d\")"},{"line_number":147,"context_line":"            ret[arr[0]] \u003d arr[1].strip(\"\\\"\")"},{"line_number":148,"context_line":"        return ret"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_03665929","line":146,"updated":"2015-01-04 21:48:08.000000000","message":"the following is safer (it always returns a 3-uplet):\n\n key, sep, value \u003d e.partition(\"\u003d\")\n ret[key] \u003d value.strip(\u0027\"\u0027)\n\nchecking sep !\u003d \"\" can replace L144","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bbad03251cbbc629a5c7e87cb7bd34b7b79a91d7","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        for e in list:"},{"line_number":144,"context_line":"            if e.find(\"\u003d\") \u003d\u003d -1:"},{"line_number":145,"context_line":"                continue"},{"line_number":146,"context_line":"            arr \u003d e.split(\"\u003d\")"},{"line_number":147,"context_line":"            ret[arr[0]] \u003d arr[1].strip(\"\\\"\")"},{"line_number":148,"context_line":"        return ret"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_a8e42b3c","line":146,"in_reply_to":"3a961159_03665929","updated":"2015-01-07 17:37:46.000000000","message":"Done","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"6cb3fdeb12b136a9b7491dd9679ebca8b02c1552","unresolved":false,"context_lines":[{"line_number":145,"context_line":"                continue"},{"line_number":146,"context_line":"            arr \u003d e.split(\"\u003d\")"},{"line_number":147,"context_line":"            ret[arr[0]] \u003d arr[1].strip(\"\\\"\")"},{"line_number":148,"context_line":"        return ret"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"class OVSBridge(BaseOVS):"}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_f85b8c1f","line":148,"updated":"2015-01-06 10:06:49.000000000","message":"while it is worth addressing cedric\u0027s comments, I would not make them a requirement for merging this patch. This is simply a method which has been moved and not changed at all. It can be improved as suggested by cedric in another patch (but if Terry wishes to do it here, it would be even better)","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"512e6f243590d3b8808a06ca44e98e06653be77d","unresolved":false,"context_lines":[{"line_number":546,"context_line":"                          self.br.br_name)"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":""},{"line_number":549,"context_line":"def get_bridge_for_iface(root_helper, iface):"},{"line_number":550,"context_line":"    ovs \u003d BaseOVS(root_helper)"},{"line_number":551,"context_line":"    return ovs.get_bridge_for_iface(iface)"},{"line_number":552,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_236d1505","line":549,"updated":"2015-01-04 21:48:08.000000000","message":"It seems we can remove the method and use directly BaseOVS.get_bridge_for_iface (use once if we except tests)","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":5756,"name":"Terry Wilson","email":"twilson@redhat.com","username":"otherwiseguy"},"change_message_id":"bbad03251cbbc629a5c7e87cb7bd34b7b79a91d7","unresolved":false,"context_lines":[{"line_number":546,"context_line":"                          self.br.br_name)"},{"line_number":547,"context_line":""},{"line_number":548,"context_line":""},{"line_number":549,"context_line":"def get_bridge_for_iface(root_helper, iface):"},{"line_number":550,"context_line":"    ovs \u003d BaseOVS(root_helper)"},{"line_number":551,"context_line":"    return ovs.get_bridge_for_iface(iface)"},{"line_number":552,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_48cbc7a3","line":549,"in_reply_to":"3a961159_236d1505","updated":"2015-01-07 17:37:46.000000000","message":"Yeah, I was trying to avoid touching more code. But these really should just go away.","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"512e6f243590d3b8808a06ca44e98e06653be77d","unresolved":false,"context_lines":[{"line_number":551,"context_line":"    return ovs.get_bridge_for_iface(iface)"},{"line_number":552,"context_line":""},{"line_number":553,"context_line":""},{"line_number":554,"context_line":"def get_bridges(root_helper):"},{"line_number":555,"context_line":"    ovs \u003d BaseOVS(root_helper)"},{"line_number":556,"context_line":"    return ovs.get_bridges()"},{"line_number":557,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_23443573","line":554,"updated":"2015-01-04 21:48:08.000000000","message":"itto","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"512e6f243590d3b8808a06ca44e98e06653be77d","unresolved":false,"context_lines":[{"line_number":556,"context_line":"    return ovs.get_bridges()"},{"line_number":557,"context_line":""},{"line_number":558,"context_line":""},{"line_number":559,"context_line":"def get_bridge_external_bridge_id(root_helper, bridge):"},{"line_number":560,"context_line":"    ovs \u003d BaseOVS(root_helper)"},{"line_number":561,"context_line":"    return ovs.get_bridge_external_bridge_id(bridge)"},{"line_number":562,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"3a961159_43478177","line":559,"updated":"2015-01-04 21:48:08.000000000","message":"ditto","commit_id":"c3b84c0b74475805b7df30e002509194dd1fcf77"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"60cff5d4fea06461184a92d817797a36c259d7e2","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        self.run_vsctl(args)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def _db_get_map(self, table, record, column, check_error\u003dFalse):"},{"line_number":130,"context_line":"        def db_str_to_map(full_str):"},{"line_number":131,"context_line":"            list \u003d full_str.strip(\"{}\").split(\", \")"},{"line_number":132,"context_line":"            ret \u003d {}"},{"line_number":133,"context_line":"            for e in list:"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a961159_3ea4a74a","line":130,"updated":"2015-01-10 01:20:23.000000000","message":"(No action required) Consider reversing this change.  Inline methods (except in extremely specialized circumstances) are an anti-pattern for me because they are effectively untestable.  The only reason I\u0027m not going to block on this is that this is a non-functional refactor and we will hopefully be deprecating the cli interface to ovsdb before this code would be the subject of any modification.","commit_id":"215557ea00399e0e09411f4fae9e05c792372699"},{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"9dda6e1aefb8c64368caeb22c7f9b276879e5b23","unresolved":false,"context_lines":[{"line_number":161,"context_line":""},{"line_number":162,"context_line":"    def _db_get_map(self, table, record, column, check_error\u003dFalse):"},{"line_number":163,"context_line":"        def db_str_to_map(full_str):"},{"line_number":164,"context_line":"            list \u003d full_str.strip(\"{}\").split(\", \")"},{"line_number":165,"context_line":"            ret \u003d {}"},{"line_number":166,"context_line":"            for e in list:"},{"line_number":167,"context_line":"                key, sep, value \u003d e.partition(\u0027\u003d\u0027)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_b3ec21bd","line":164,"updated":"2015-01-12 22:37:57.000000000","message":"(No action required) Ugh, not sure how we missed this, but using the name of a builtin (\u0027list\u0027) as a variable name is a bad idea.","commit_id":"0654327f537648c6f5b2a0dadc5a26b6a5f6901c"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":2035,"name":"Maru Newby","email":"marun@redhat.com","username":"maru"},"change_message_id":"9dda6e1aefb8c64368caeb22c7f9b276879e5b23","unresolved":false,"context_lines":[{"line_number":736,"context_line":"        # bridge-id\u0027s configured"},{"line_number":737,"context_line":"        br_names \u003d []"},{"line_number":738,"context_line":"        for bridge in ovs_bridges:"},{"line_number":739,"context_line":"            id \u003d ovs.get_bridge_external_bridge_id(bridge)"},{"line_number":740,"context_line":"            if id !\u003d bridge:"},{"line_number":741,"context_line":"                br_names.append(bridge)"},{"line_number":742,"context_line":"        ovs_bridges.difference_update(br_names)"}],"source_content_type":"text/x-python","patch_set":10,"id":"3a961159_f314e9a0","line":739,"updated":"2015-01-12 22:37:57.000000000","message":"(No action required) Ugh, more overriding builtins (\u0027id\u0027)","commit_id":"0654327f537648c6f5b2a0dadc5a26b6a5f6901c"}]}
