)]}'
{"ironic/drivers/modules/deploy_utils.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"96ef071b57b7c97bd89a8014332dddba4ec4a0dd","unresolved":false,"context_lines":[{"line_number":640,"context_line":"        node.save()"},{"line_number":641,"context_line":""},{"line_number":642,"context_line":""},{"line_number":643,"context_line":"def get_single_nic_with_vif_port_id(task):"},{"line_number":644,"context_line":"    \"\"\"Returns the MAC address of a port which has a VIF port id."},{"line_number":645,"context_line":""},{"line_number":646,"context_line":"    :param task: a TaskManager instance containing the ports to act on."}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_8ce33aa3","line":643,"updated":"2015-02-04 07:40:42.000000000","message":"nit: s/single/first/\n\nalso I saw us calling vif_port_id just vif, so maybe s/port_id//\n\n(trying to make this name a bit shorter)","commit_id":"08682c9cb3c7e7f1c0de6e26456af5310e2c88c4"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"496d91d380d31163d0b8d68b8cbdef17fd1175e7","unresolved":false,"context_lines":[{"line_number":640,"context_line":"        node.save()"},{"line_number":641,"context_line":""},{"line_number":642,"context_line":""},{"line_number":643,"context_line":"def get_single_nic_with_vif_port_id(task):"},{"line_number":644,"context_line":"    \"\"\"Returns the MAC address of a port which has a VIF port id."},{"line_number":645,"context_line":""},{"line_number":646,"context_line":"    :param task: a TaskManager instance containing the ports to act on."}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_2756e806","line":643,"in_reply_to":"da86d52c_8ce33aa3","updated":"2015-02-04 08:50:42.000000000","message":"I understood your point.\nBut I hesitate to to that because it\u0027s side issue of this patch. Also I\u0027m not the original author of this chunk of code. Maybe original author would have some thoughts.","commit_id":"08682c9cb3c7e7f1c0de6e26456af5310e2c88c4"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"921472eebe27e7743ac440af8b2d274b51f9a0b3","unresolved":false,"context_lines":[{"line_number":640,"context_line":"        node.save()"},{"line_number":641,"context_line":""},{"line_number":642,"context_line":""},{"line_number":643,"context_line":"def get_single_nic_with_vif_port_id(task):"},{"line_number":644,"context_line":"    \"\"\"Returns the MAC address of a port which has a VIF port id."},{"line_number":645,"context_line":""},{"line_number":646,"context_line":"    :param task: a TaskManager instance containing the ports to act on."}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_87a23497","line":643,"updated":"2015-02-04 09:06:21.000000000","message":"Now that it\u0027s part of common API, I think some bikeshedding can take place :D\n\nI still vote for get_first_nic_with_vif","commit_id":"4d139fae7c89d85a26c1d2dda70084121b336dd6"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"121e24e44bf7271b176433a99f6ff2fe88de0984","unresolved":false,"context_lines":[{"line_number":640,"context_line":"        node.save()"},{"line_number":641,"context_line":""},{"line_number":642,"context_line":""},{"line_number":643,"context_line":"def get_single_nic_with_vif_port_id(task):"},{"line_number":644,"context_line":"    \"\"\"Returns the MAC address of a port which has a VIF port id."},{"line_number":645,"context_line":""},{"line_number":646,"context_line":"    :param task: a TaskManager instance containing the ports to act on."}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_733fbdd6","line":643,"in_reply_to":"da86d52c_53e719ac","updated":"2015-02-04 13:12:35.000000000","message":"oh sorry :) I\u0027ve learned this word half a year as well, so now I\u0027m using it from time to time :)","commit_id":"4d139fae7c89d85a26c1d2dda70084121b336dd6"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"9b33b0bf2dc244acf54efe26c1c167cbacfc9112","unresolved":false,"context_lines":[{"line_number":640,"context_line":"        node.save()"},{"line_number":641,"context_line":""},{"line_number":642,"context_line":""},{"line_number":643,"context_line":"def get_single_nic_with_vif_port_id(task):"},{"line_number":644,"context_line":"    \"\"\"Returns the MAC address of a port which has a VIF port id."},{"line_number":645,"context_line":""},{"line_number":646,"context_line":"    :param task: a TaskManager instance containing the ports to act on."}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_3e897c75","line":643,"in_reply_to":"da86d52c_733fbdd6","updated":"2015-02-04 18:32:14.000000000","message":"I think that at the very least, s/single/first/. Because it returns the first one. Naohiro, even though your goal was to move this function, it is not an internal method to ilo now, so it makes sense to clean up whatever needs cleaning up, before it is used by more code.\n\nI actually wish there was an easy way to get the ports from the node, since it makes more sense (to me) to have a node as a parameter than the task, but anyway, that\u0027s an aside.\n\nI like shorter, but I haven\u0027t looked to see how we use vif vs vif_port_id in our code. Although I would trust Dmitry on that. I would say that \u0027get_...WITH_vif_port_id\u0027 makes me think that the method would have an argument \u0027vif_port_id\u0027 that specifies the desired ID.","commit_id":"4d139fae7c89d85a26c1d2dda70084121b336dd6"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"74ac1cc72904004c16c6df6214647e1f31036720","unresolved":false,"context_lines":[{"line_number":640,"context_line":"        node.save()"},{"line_number":641,"context_line":""},{"line_number":642,"context_line":""},{"line_number":643,"context_line":"def get_single_nic_with_vif_port_id(task):"},{"line_number":644,"context_line":"    \"\"\"Returns the MAC address of a port which has a VIF port id."},{"line_number":645,"context_line":""},{"line_number":646,"context_line":"    :param task: a TaskManager instance containing the ports to act on."}],"source_content_type":"text/x-python","patch_set":2,"id":"da86d52c_53e719ac","line":643,"in_reply_to":"da86d52c_87a23497","updated":"2015-02-04 13:09:29.000000000","message":"Now I understood what you mean. :)\nI looked up\"bikeshedding\" in Wiktionary.","commit_id":"4d139fae7c89d85a26c1d2dda70084121b336dd6"}],"ironic/tests/drivers/test_deploy_utils.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"96ef071b57b7c97bd89a8014332dddba4ec4a0dd","unresolved":false,"context_lines":[{"line_number":1046,"context_line":"        self.node \u003d obj_utils.create_test_node(self.context,"},{"line_number":1047,"context_line":"        driver\u003d\u0027iscsi_ilo\u0027, driver_info\u003dinfo_dict)"},{"line_number":1048,"context_line":""},{"line_number":1049,"context_line":"    def test__get_single_nic_with_vif_port_id(self):"},{"line_number":1050,"context_line":"        obj_utils.create_test_port(self.context, node_id\u003dself.node.id,"},{"line_number":1051,"context_line":"                address\u003d\u0027aa:bb:cc\u0027, uuid\u003dcommon_utils.generate_uuid(),"},{"line_number":1052,"context_line":"                extra\u003d{\u0027vif_port_id\u0027: \u0027test-vif-A\u0027}, driver\u003d\u0027iscsi_ilo\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_0c9e6a07","line":1049,"updated":"2015-02-04 07:40:42.000000000","message":"s/__/_/","commit_id":"08682c9cb3c7e7f1c0de6e26456af5310e2c88c4"},{"author":{"_account_id":13719,"name":"Naohiro Tamura","email":"naohirot.openstack@gmail.com","username":"nao"},"change_message_id":"496d91d380d31163d0b8d68b8cbdef17fd1175e7","unresolved":false,"context_lines":[{"line_number":1046,"context_line":"        self.node \u003d obj_utils.create_test_node(self.context,"},{"line_number":1047,"context_line":"        driver\u003d\u0027iscsi_ilo\u0027, driver_info\u003dinfo_dict)"},{"line_number":1048,"context_line":""},{"line_number":1049,"context_line":"    def test__get_single_nic_with_vif_port_id(self):"},{"line_number":1050,"context_line":"        obj_utils.create_test_port(self.context, node_id\u003dself.node.id,"},{"line_number":1051,"context_line":"                address\u003d\u0027aa:bb:cc\u0027, uuid\u003dcommon_utils.generate_uuid(),"},{"line_number":1052,"context_line":"                extra\u003d{\u0027vif_port_id\u0027: \u0027test-vif-A\u0027}, driver\u003d\u0027iscsi_ilo\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da86d52c_c75d0c17","line":1049,"in_reply_to":"da86d52c_0c9e6a07","updated":"2015-02-04 08:50:42.000000000","message":"I\u0027ll fix that.","commit_id":"08682c9cb3c7e7f1c0de6e26456af5310e2c88c4"}]}
