)]}'
{"ironic_inspector/plugins/discovery.py":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"1a459a2c848d3fa7833bb9b4ee47ff0e130fdd98","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"def _check_existing_nodes(introspection_data, node_driver_info, ironic):"},{"line_number":55,"context_line":"    macs \u003d utils.get_valid_macs(introspection_data)"},{"line_number":56,"context_line":"    if macs:"},{"line_number":57,"context_line":"        # verify existing ports"},{"line_number":58,"context_line":"        for mac in macs:"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa0719c6_576fe6c4","line":55,"range":{"start_line":55,"start_character":11,"end_line":55,"end_character":31},"updated":"2016-03-22 07:44:02.000000000","message":"Shouldn\u0027t it be checked during auto discovery? https://review.openstack.org/#/c/294467/2/ironic_inspector/plugins/standard.py L194","commit_id":"b638c70f82e56dbd5a3a86febd42db04e0cdb6fc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"05ed2f22bfe1404fdc0e1e9a770e6a68a835ab59","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"def _check_existing_nodes(introspection_data, node_driver_info, ironic):"},{"line_number":55,"context_line":"    macs \u003d utils.get_valid_macs(introspection_data)"},{"line_number":56,"context_line":"    if macs:"},{"line_number":57,"context_line":"        # verify existing ports"},{"line_number":58,"context_line":"        for mac in macs:"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a061dce_601a6870","line":55,"range":{"start_line":55,"start_character":11,"end_line":55,"end_character":31},"in_reply_to":"fa0719c6_576fe6c4","updated":"2016-04-04 08:50:23.000000000","message":"At this stage this check was already done","commit_id":"b638c70f82e56dbd5a3a86febd42db04e0cdb6fc"}],"ironic_inspector/plugins/standard.py":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"1a459a2c848d3fa7833bb9b4ee47ff0e130fdd98","unresolved":false,"context_lines":[{"line_number":192,"context_line":"                    continue"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"                if not mac:"},{"line_number":195,"context_line":"                    LOG.debug(\u0027Skipping interface %s without link information\u0027,"},{"line_number":196,"context_line":"                              name, data\u003ddata)"},{"line_number":197,"context_line":"                    continue"},{"line_number":198,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"fa0719c6_7cac9135","line":195,"range":{"start_line":195,"start_character":61,"end_line":195,"end_character":77},"updated":"2016-03-22 07:44:02.000000000","message":"might be use \u0027Skipping interface %s without MAC address\u0027. ip address, mtu, state are also link information, I think we have to be more specific here.\n\nDo we need to perform this check?\nEmpty mac will be rejected by utils.is_valid_mac() L 199 right?","commit_id":"b638c70f82e56dbd5a3a86febd42db04e0cdb6fc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"05ed2f22bfe1404fdc0e1e9a770e6a68a835ab59","unresolved":false,"context_lines":[{"line_number":192,"context_line":"                    continue"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"                if not mac:"},{"line_number":195,"context_line":"                    LOG.debug(\u0027Skipping interface %s without link information\u0027,"},{"line_number":196,"context_line":"                              name, data\u003ddata)"},{"line_number":197,"context_line":"                    continue"},{"line_number":198,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"9a061dce_403ac4ce","line":195,"range":{"start_line":195,"start_character":61,"end_line":195,"end_character":77},"in_reply_to":"fa0719c6_7cac9135","updated":"2016-04-04 08:50:23.000000000","message":"It\u0027s a bit redundant, but it results in a more precise message","commit_id":"b638c70f82e56dbd5a3a86febd42db04e0cdb6fc"}],"ironic_inspector/utils.py":[{"author":{"_account_id":14525,"name":"Vasyl Saienko","email":"vsaienko@mirantis.com","username":"vsaienko"},"change_message_id":"36b5bf63da40ddebbbadf3292eff59ce0cfc1ac1","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    return CONF.auth_strategy"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"def get_valid_macs(data):"},{"line_number":204,"context_line":"    \"\"\"Get a list of valid MAC\u0027s from the introspection data.\"\"\""},{"line_number":205,"context_line":"    return [m[\u0027mac\u0027]"},{"line_number":206,"context_line":"            for m in data.get(\u0027all_interfaces\u0027, {}).values()"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa0719c6_c4821452","line":203,"range":{"start_line":203,"start_character":8,"end_line":203,"end_character":13},"updated":"2016-03-22 12:27:02.000000000","message":"This function returns non empty macs from the list. I think that function name should be updated accordingly, for example get_non_empty_macs():","commit_id":"b638c70f82e56dbd5a3a86febd42db04e0cdb6fc"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"05ed2f22bfe1404fdc0e1e9a770e6a68a835ab59","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    return CONF.auth_strategy"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"def get_valid_macs(data):"},{"line_number":204,"context_line":"    \"\"\"Get a list of valid MAC\u0027s from the introspection data.\"\"\""},{"line_number":205,"context_line":"    return [m[\u0027mac\u0027]"},{"line_number":206,"context_line":"            for m in data.get(\u0027all_interfaces\u0027, {}).values()"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a061dce_a0780091","line":203,"range":{"start_line":203,"start_character":8,"end_line":203,"end_character":13},"in_reply_to":"fa0719c6_c4821452","updated":"2016-04-04 08:50:23.000000000","message":"Well, I prefer to somewhat hide what it actually does, so that we don\u0027t rename it every time this logic might get changed","commit_id":"b638c70f82e56dbd5a3a86febd42db04e0cdb6fc"}]}
