)]}'
{"octavia/controller/healthmanager/update_db.py":[{"author":{"_account_id":6579,"name":"Nir Magnezi","email":"nmagnezi@redhat.com","username":"nmagnezi"},"change_message_id":"a905c9ba773b2661f23bfcd50d684ee3d8c7f1fe","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                         \u0027expected\u0027: expected_listener_count})"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        # We got a heartbeat so lb is healthy until proven otherwise"},{"line_number":124,"context_line":"        # TODO(johnsom) Fix this if we have more than one LB on an amp"},{"line_number":125,"context_line":"        if lbs_on_amp[0].enabled is False:"},{"line_number":126,"context_line":"            lb_status \u003d constants.OFFLINE"},{"line_number":127,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf3e73b7_9c1342b9","line":124,"range":{"start_line":124,"start_character":9,"end_line":124,"end_character":70},"updated":"2017-08-06 12:57:00.000000000","message":"I was always under the impression that an amp can only serve one loadbalancer.\nWas I wrong? or was something changed?","commit_id":"7e211cfeadbb8706bdad40cadf20941337669181"},{"author":{"_account_id":11628,"name":"Michael Johnson","email":"johnsomor@gmail.com","username":"johnsom"},"change_message_id":"eda1e17781371f86c264709a49093c316e0ed095","unresolved":false,"context_lines":[{"line_number":121,"context_line":"                         \u0027expected\u0027: expected_listener_count})"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        # We got a heartbeat so lb is healthy until proven otherwise"},{"line_number":124,"context_line":"        # TODO(johnsom) Fix this if we have more than one LB on an amp"},{"line_number":125,"context_line":"        if lbs_on_amp[0].enabled is False:"},{"line_number":126,"context_line":"            lb_status \u003d constants.OFFLINE"},{"line_number":127,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"bf3e73b7_85408609","line":124,"range":{"start_line":124,"start_character":9,"end_line":124,"end_character":70},"in_reply_to":"bf3e73b7_9c1342b9","updated":"2017-08-06 18:48:00.000000000","message":"You are correct, currently it is an amp can only have one LB.  There were proposals to change that in the past, thus the legacy code in this method (see other TODO blocks).  I opted to not refactor the whole method here as it requires DB repository changes as well and seemed like too big of a change just for this bug.  We can come back later and clean up this code and make the required db repository changes.","commit_id":"7e211cfeadbb8706bdad40cadf20941337669181"}]}
