)]}'
{"neutron/agent/linux/ipset_manager.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"69a419a342b6ba0c74ca3621a9929632a8fa9a75","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        set_name \u003d self.get_name(id, ethertype)"},{"line_number":82,"context_line":"        add_ips \u003d self._get_new_set_ips(set_name, member_ips)"},{"line_number":83,"context_line":"        del_ips \u003d self._get_deleted_set_ips(set_name, member_ips)"},{"line_number":84,"context_line":"        if not any([add_ips, del_ips, not self.set_exists(id, ethertype)]):"},{"line_number":85,"context_line":"            # nothing to do because no membership changes and the ipset exists"},{"line_number":86,"context_line":"            return"},{"line_number":87,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a2fa921_6c53ede2","line":84,"updated":"2015-10-08 20:39:42.000000000","message":"I\u0027m not sure how I feel about turning a regular old boolean into a call to any([condition1, condition2, condition3]).  Is it really better than:\n\n  if not (add_ips or del_ips or not self.set_exists(id, ethertype)):\n\nor\n\n  if self.set_exists(id, ethertype) and not add_ips and not del_ips:\n\nWhich is how I would\u0027ve done it.  I might have even gone with this:\n\n  if self.set_exists(id, ethertype):\n      add_ips \u003d self._get_new_set_ips(set_name, member_ips)\n      del_ips \u003d self._get_deleted_set_ips(set_name, member_ips)\n      if not add_ips and not del_ips:\n          return\n\nBut, admittedly, that is bound to make people wonder about the validity of add_ips and del_ips later in the method.","commit_id":"000c3bd114e946686ab7eb71bf8ef4e1bb2e5756"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"041ab802058badadb6d4006b158068d2c7856875","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        set_name \u003d self.get_name(id, ethertype)"},{"line_number":82,"context_line":"        add_ips \u003d self._get_new_set_ips(set_name, member_ips)"},{"line_number":83,"context_line":"        del_ips \u003d self._get_deleted_set_ips(set_name, member_ips)"},{"line_number":84,"context_line":"        if not any([add_ips, del_ips, not self.set_exists(id, ethertype)]):"},{"line_number":85,"context_line":"            # nothing to do because no membership changes and the ipset exists"},{"line_number":86,"context_line":"            return"},{"line_number":87,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a2fa921_ad981fc1","line":84,"in_reply_to":"7a2fa921_6c53ede2","updated":"2015-10-08 21:44:08.000000000","message":"ugh, i messed it up. I wanted to avoid a set_exists call if any returned true before but I failed miserably.","commit_id":"000c3bd114e946686ab7eb71bf8ef4e1bb2e5756"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"9480569d3cab1001098c02e33f9efbc3382d2d0f","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        set_name \u003d self.get_name(id, ethertype)"},{"line_number":82,"context_line":"        add_ips \u003d self._get_new_set_ips(set_name, member_ips)"},{"line_number":83,"context_line":"        del_ips \u003d self._get_deleted_set_ips(set_name, member_ips)"},{"line_number":84,"context_line":"        if not any([add_ips, del_ips, not self.set_exists(id, ethertype)]):"},{"line_number":85,"context_line":"            # nothing to do because no membership changes and the ipset exists"},{"line_number":86,"context_line":"            return"},{"line_number":87,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a2fa921_8ded23b9","line":84,"in_reply_to":"7a2fa921_ad981fc1","updated":"2015-10-08 21:57:03.000000000","message":"You\u0027re right, that doesn\u0027t avoid it.","commit_id":"000c3bd114e946686ab7eb71bf8ef4e1bb2e5756"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"69a419a342b6ba0c74ca3621a9929632a8fa9a75","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            # nothing to do because no membership changes and the ipset exists"},{"line_number":86,"context_line":"            return"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        with lockutils.lock(\u0027ipset\u0027, utils.SYNCHRONIZED_PREFIX, external\u003dTrue):"},{"line_number":89,"context_line":"            if not self.set_exists(id, ethertype):"},{"line_number":90,"context_line":"                # The initial creation is handled with create/refresh to"},{"line_number":91,"context_line":"                # avoid any downtime for existing sets (i.e. avoiding"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a2fa921_cc948144","line":88,"updated":"2015-10-08 20:39:42.000000000","message":"I wish there were a way to not change all of this indentation.  But, I already reviewed it and it looks fine.  It probably wouldn\u0027t be worth it.","commit_id":"000c3bd114e946686ab7eb71bf8ef4e1bb2e5756"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"041ab802058badadb6d4006b158068d2c7856875","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            # nothing to do because no membership changes and the ipset exists"},{"line_number":86,"context_line":"            return"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        with lockutils.lock(\u0027ipset\u0027, utils.SYNCHRONIZED_PREFIX, external\u003dTrue):"},{"line_number":89,"context_line":"            if not self.set_exists(id, ethertype):"},{"line_number":90,"context_line":"                # The initial creation is handled with create/refresh to"},{"line_number":91,"context_line":"                # avoid any downtime for existing sets (i.e. avoiding"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a2fa921_4df06bfe","line":88,"in_reply_to":"7a2fa921_cc948144","updated":"2015-10-08 21:44:08.000000000","message":"there is, I\u0027ll just add a new function.","commit_id":"000c3bd114e946686ab7eb71bf8ef4e1bb2e5756"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"d686cec47caefac243e09e358c2f8b75b6abe6b9","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        self.set_members_mutate(id, ethertype, member_ips)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    @utils.synchronized(\u0027ipset\u0027, external\u003dTrue)"},{"line_number":89,"context_line":"    def set_members_mutate(self, id, ethertype, member_ips):"},{"line_number":90,"context_line":"        set_name \u003d self.get_name(id, ethertype)"},{"line_number":91,"context_line":"        if not self.set_exists(id, ethertype):"},{"line_number":92,"context_line":"            # The initial creation is handled with create/refresh to"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_d3e5f9a3","line":89,"updated":"2015-10-09 01:16:08.000000000","message":"Would have been cleaner to pass set_name along since we already calculated it.  I\u0027ll send a follow-up since there\u0027s a couple of places where we do this.","commit_id":"da9fcd8ab9e48226b18d42180ae0089c2abbcab5"}]}
