)]}'
{"openstack_dashboard/dashboards/project/instances/tests.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7c60030d9cb6a9e7a21c38b6f65395060a022f0f","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"def form_data_multi_nic(self):"},{"line_number":50,"context_line":"    return {\u0027network\u0027: {self.networks.first().id,"},{"line_number":51,"context_line":"                        self.networks.list()[3].id},"},{"line_number":52,"context_line":"            \u0027profile\u0027: {self.policy_profiles.first().id}"},{"line_number":53,"context_line":"            }"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAWH%2F%2FU2o%3D","line":51,"updated":"2014-03-18 15:57:51.000000000","message":"Could you use set([x, y]) to define a set?\nAFAIK, it is not available in py2.6.","commit_id":"774e51c30c1e2d17a00666655944f3a43c560d55"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"a6a33e631a2b61c7c317323f19fe4418dd65abfa","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"def form_data_multi_nic(self):"},{"line_number":50,"context_line":"    return {\u0027network\u0027: {self.networks.first().id,"},{"line_number":51,"context_line":"                        self.networks.list()[3].id},"},{"line_number":52,"context_line":"            \u0027profile\u0027: {self.policy_profiles.first().id}"},{"line_number":53,"context_line":"            }"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAWH%2F%2FUto%3D","line":51,"in_reply_to":"AAAAWH%2F%2FU2o%3D","updated":"2014-03-18 16:15:10.000000000","message":"Right. It\u0027s why jenkins failed. Running run tests in my setup worked fine but jenkins found this to be a syntax error. Changing it.","commit_id":"774e51c30c1e2d17a00666655944f3a43c560d55"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"7c60030d9cb6a9e7a21c38b6f65395060a022f0f","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"def form_data_profile(self):"},{"line_number":57,"context_line":"    return {\u0027profile\u0027: self.policy_profiles.first().id}"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"class InstanceTests(test.TestCase):"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAWH%2F%2FU3s%3D","line":57,"updated":"2014-03-18 15:57:51.000000000","message":"I don\u0027t think we need to define them as global in the module. Can you move them inside the test? At least it depends on a class instance (it takes an arugment \"self\"), so it is better to define as a method.","commit_id":"774e51c30c1e2d17a00666655944f3a43c560d55"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"a6a33e631a2b61c7c317323f19fe4418dd65abfa","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"def form_data_profile(self):"},{"line_number":57,"context_line":"    return {\u0027profile\u0027: self.policy_profiles.first().id}"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"class InstanceTests(test.TestCase):"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAWH%2F%2FUtg%3D","line":57,"in_reply_to":"AAAAWH%2F%2FU3s%3D","updated":"2014-03-18 16:15:10.000000000","message":"Done","commit_id":"774e51c30c1e2d17a00666655944f3a43c560d55"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"fc440ee6dc83ab3973905862d70beae7f9db9c57","unresolved":false,"context_lines":[{"line_number":1536,"context_line":"            policy_profiles \u003d self.policy_profiles.list()"},{"line_number":1537,"context_line":"            policy_profile_id \u003d self.policy_profiles.first().id"},{"line_number":1538,"context_line":"            port_one \u003d self.ports.first()"},{"line_number":1539,"context_line":"            port_two \u003d self.ports.get(name\u003d\"port5\")"},{"line_number":1540,"context_line":"            nics \u003d [{\"port-id\": port_one.id},"},{"line_number":1541,"context_line":"                    {\"port-id\": port_two.id}]"},{"line_number":1542,"context_line":"            api.neutron.profile_list("}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_bf397ada","line":1539,"updated":"2014-09-21 10:56:44.000000000","message":"I think it is better to add another test for mulit nic rather than changing the existing one.","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"fa9a856fee1175915d735fbab06b62c821f282d7","unresolved":false,"context_lines":[{"line_number":1536,"context_line":"            policy_profiles \u003d self.policy_profiles.list()"},{"line_number":1537,"context_line":"            policy_profile_id \u003d self.policy_profiles.first().id"},{"line_number":1538,"context_line":"            port_one \u003d self.ports.first()"},{"line_number":1539,"context_line":"            port_two \u003d self.ports.get(name\u003d\"port5\")"},{"line_number":1540,"context_line":"            nics \u003d [{\"port-id\": port_one.id},"},{"line_number":1541,"context_line":"                    {\"port-id\": port_two.id}]"},{"line_number":1542,"context_line":"            api.neutron.profile_list("}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_1ccb6673","line":1539,"in_reply_to":"da9df570_bf397ada","updated":"2014-09-22 11:51:29.000000000","message":"Done","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"00c00c90955b96dbade8f5c93936fe508f769845","unresolved":false,"context_lines":[{"line_number":1535,"context_line":"                           cinder: (\u0027volume_list\u0027,"},{"line_number":1536,"context_line":"                                    \u0027volume_snapshot_list\u0027,),"},{"line_number":1537,"context_line":"                           quotas: (\u0027tenant_quota_usages\u0027,)})"},{"line_number":1538,"context_line":"    def test_launch_instance_post(self,"},{"line_number":1539,"context_line":"                                  disk_config\u003dTrue,"},{"line_number":1540,"context_line":"                                  config_drive\u003dTrue,"},{"line_number":1541,"context_line":"                                  test_with_profile\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":14,"id":"5a890539_b3f0ae92","line":1538,"updated":"2014-11-28 14:29:38.000000000","message":"Customarily, we name test methods that are reused by multiples tests so they are prefixed by an underscore (_) (see e.g. https://github.com/openstack/horizon/blob/746af6eeb0/openstack_dashboard/dashboards/project/networks/tests.py#L162 ). Then we can recreate test_launch_instance_post() that calls it with the default parameters. That way it\u0027s much easier to see which methods actually affect multiple tests and should be modified more carefully.","commit_id":"eb7c939b7f8f57f84d69aa4ba50d626d1c85c4a3"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"8b2df1630e9e1dcafa9a62dc8fd00201ce30e402","unresolved":false,"context_lines":[{"line_number":1535,"context_line":"                           cinder: (\u0027volume_list\u0027,"},{"line_number":1536,"context_line":"                                    \u0027volume_snapshot_list\u0027,),"},{"line_number":1537,"context_line":"                           quotas: (\u0027tenant_quota_usages\u0027,)})"},{"line_number":1538,"context_line":"    def test_launch_instance_post(self,"},{"line_number":1539,"context_line":"                                  disk_config\u003dTrue,"},{"line_number":1540,"context_line":"                                  config_drive\u003dTrue,"},{"line_number":1541,"context_line":"                                  test_with_profile\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_7c6050a5","line":1538,"in_reply_to":"3a961159_34b99415","updated":"2014-12-12 08:44:07.000000000","message":"I didn\u0027t realise there were other methods calling it directly already. It\u0027s not a big change but I agree it\u0027s heading into refactoring territory and it\u0027s totally reasonable to address it separately instead. Thanks Abishek!","commit_id":"eb7c939b7f8f57f84d69aa4ba50d626d1c85c4a3"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"c02aef43efca6227049a60862eaf795f7e8eb555","unresolved":false,"context_lines":[{"line_number":1535,"context_line":"                           cinder: (\u0027volume_list\u0027,"},{"line_number":1536,"context_line":"                                    \u0027volume_snapshot_list\u0027,),"},{"line_number":1537,"context_line":"                           quotas: (\u0027tenant_quota_usages\u0027,)})"},{"line_number":1538,"context_line":"    def test_launch_instance_post(self,"},{"line_number":1539,"context_line":"                                  disk_config\u003dTrue,"},{"line_number":1540,"context_line":"                                  config_drive\u003dTrue,"},{"line_number":1541,"context_line":"                                  test_with_profile\u003dFalse,"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_34b99415","line":1538,"in_reply_to":"5a890539_b3f0ae92","updated":"2014-12-11 17:50:49.000000000","message":"Thanks for the comment Julie. I understand your point and there are similar such instance in this very file. However, when a test method is prefixed with an underscore, that is not a standalone test case and unless there is another method calling it, a test is actually not run. Like you say it does make for easier reading. In this case however, test_launch_instance_post is it\u0027s own standalone test case as well. There are two other tests also invoking it - the config_drive tests in a manner similar to the way I am. \nI do agree with you though that we should have an _test_launch_instance_post and then just a regular test_launch_instance_post with the defaults and without any additional parameters to make understanding easier. Since there are other tests to modify, would it be ok if I did it as part of a separate bug fix? I\u0027ll open one up do address this as I don\u0027t want to make too many different changes in one fix. Let me know if this is acceptable.","commit_id":"eb7c939b7f8f57f84d69aa4ba50d626d1c85c4a3"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"00c00c90955b96dbade8f5c93936fe508f769845","unresolved":false,"context_lines":[{"line_number":1698,"context_line":"                           cinder: (\u0027volume_list\u0027,"},{"line_number":1699,"context_line":"                                    \u0027volume_snapshot_list\u0027,),"},{"line_number":1700,"context_line":"                           quotas: (\u0027tenant_quota_usages\u0027,)})"},{"line_number":1701,"context_line":"    def test_launch_instance_post_with_profile_and_port_error("},{"line_number":1702,"context_line":"        self,"},{"line_number":1703,"context_line":"        test_with_multi_nics\u003dFalse,"},{"line_number":1704,"context_line":"    ):"}],"source_content_type":"text/x-python","patch_set":14,"id":"5a890539_e8d15c30","line":1701,"updated":"2014-11-28 14:29:38.000000000","message":"Same comment about reused test methods here.","commit_id":"eb7c939b7f8f57f84d69aa4ba50d626d1c85c4a3"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"c02aef43efca6227049a60862eaf795f7e8eb555","unresolved":false,"context_lines":[{"line_number":1698,"context_line":"                           cinder: (\u0027volume_list\u0027,"},{"line_number":1699,"context_line":"                                    \u0027volume_snapshot_list\u0027,),"},{"line_number":1700,"context_line":"                           quotas: (\u0027tenant_quota_usages\u0027,)})"},{"line_number":1701,"context_line":"    def test_launch_instance_post_with_profile_and_port_error("},{"line_number":1702,"context_line":"        self,"},{"line_number":1703,"context_line":"        test_with_multi_nics\u003dFalse,"},{"line_number":1704,"context_line":"    ):"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_f449cc31","line":1701,"in_reply_to":"5a890539_e8d15c30","updated":"2014-12-11 17:50:49.000000000","message":"Since I have created this new test case and I\u0027m the only other user as well, I\u0027ll create a _method and then a regular test method invoking the underscored one.","commit_id":"eb7c939b7f8f57f84d69aa4ba50d626d1c85c4a3"}],"openstack_dashboard/dashboards/project/instances/workflows/create_instance.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"802ec183a77ccf241e0d356e65b092d493f8cc27","unresolved":false,"context_lines":[{"line_number":651,"context_line":"            nics \u003d []"},{"line_number":652,"context_line":"            for nid in net_ids:"},{"line_number":653,"context_line":"                LOG.debug(\"Horizon-\u003eCreate Port with \""},{"line_number":654,"context_line":"                          \"%(netid)s %(profile_id)s\","},{"line_number":655,"context_line":"                          {\u0027netid\u0027: nid,"},{"line_number":656,"context_line":"                           \u0027profile_id\u0027: context[\u0027profile_id\u0027]})"},{"line_number":657,"context_line":"                port \u003d None"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2BmI0%3D","line":654,"updated":"2014-02-20 09:49:57.000000000","message":"The current message needs to be improved. It looks too ad-hoc for debugging during development. This is a part of openstack_dashboard, so \"Horizon-\u003e\" has no meaning. For example,\n\n  Creating a port on network %(netid)s with profile %(profile_id)s","commit_id":"cd5bb532cb3dd13b3b6a55245a9b38dd90029c6f"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"dca8726d88cee3d18f57f776b8cc4d97df133ec4","unresolved":false,"context_lines":[{"line_number":651,"context_line":"            nics \u003d []"},{"line_number":652,"context_line":"            for nid in net_ids:"},{"line_number":653,"context_line":"                LOG.debug(\"Horizon-\u003eCreate Port with \""},{"line_number":654,"context_line":"                          \"%(netid)s %(profile_id)s\","},{"line_number":655,"context_line":"                          {\u0027netid\u0027: nid,"},{"line_number":656,"context_line":"                           \u0027profile_id\u0027: context[\u0027profile_id\u0027]})"},{"line_number":657,"context_line":"                port \u003d None"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2Bjrc%3D","line":654,"in_reply_to":"AAAAUX%2F%2BmI0%3D","updated":"2014-02-20 14:46:58.000000000","message":"Hi Akhiro,\nApologies, this message has been updated.. haven\u0027t uploaded the new version just yet. I do have UT but it uses the test data from the other review you approved. Once that is merged, I\u0027ll send out the new version of diffs with the UT.","commit_id":"cd5bb532cb3dd13b3b6a55245a9b38dd90029c6f"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"243d24ad037a835bf98c8eff520c6015ef738de0","unresolved":false,"context_lines":[{"line_number":653,"context_line":"                LOG.debug(\"Horizon-\u003eCreate Port with \""},{"line_number":654,"context_line":"                          \"%(netid)s %(profile_id)s\","},{"line_number":655,"context_line":"                          {\u0027netid\u0027: nid,"},{"line_number":656,"context_line":"                           \u0027profile_id\u0027: context[\u0027profile_id\u0027]})"},{"line_number":657,"context_line":"                port \u003d None"},{"line_number":658,"context_line":"                try:"},{"line_number":659,"context_line":"                    port \u003d api.neutron.port_create(request, nid,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2FBuM%3D","line":656,"updated":"2014-02-17 15:21:10.000000000","message":"I don\u0027t think you should be committing debug statements.","commit_id":"cd5bb532cb3dd13b3b6a55245a9b38dd90029c6f"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"cc94ca0b5084056b3e73187a1fefbfc8cc6332dd","unresolved":false,"context_lines":[{"line_number":653,"context_line":"                LOG.debug(\"Horizon-\u003eCreate Port with \""},{"line_number":654,"context_line":"                          \"%(netid)s %(profile_id)s\","},{"line_number":655,"context_line":"                          {\u0027netid\u0027: nid,"},{"line_number":656,"context_line":"                           \u0027profile_id\u0027: context[\u0027profile_id\u0027]})"},{"line_number":657,"context_line":"                port \u003d None"},{"line_number":658,"context_line":"                try:"},{"line_number":659,"context_line":"                    port \u003d api.neutron.port_create(request, nid,"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2B1EU%3D","line":656,"in_reply_to":"AAAAUX%2F%2FBuM%3D","updated":"2014-02-18 18:50:56.000000000","message":"disregard earlier comment.","commit_id":"cd5bb532cb3dd13b3b6a55245a9b38dd90029c6f"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"802ec183a77ccf241e0d356e65b092d493f8cc27","unresolved":false,"context_lines":[{"line_number":664,"context_line":"                           context[\u0027profile_id\u0027])"},{"line_number":665,"context_line":"                    exceptions.handle(request, msg)"},{"line_number":666,"context_line":""},{"line_number":667,"context_line":"                    if port and port.id:"},{"line_number":668,"context_line":"                        nics.append({\"port-id\": port.id})"},{"line_number":669,"context_line":""},{"line_number":670,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2BmL8%3D","line":667,"updated":"2014-02-20 09:49:57.000000000","message":"It looks really strange. if-clause is inside of except-clause.\n\nEven if-clause is moved to outside of except, I am still afraid if it works excepted when an exception occurs. If some error occurs, a network for a failed port will disappear from nics list. It is really strange.","commit_id":"cd5bb532cb3dd13b3b6a55245a9b38dd90029c6f"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"dca8726d88cee3d18f57f776b8cc4d97df133ec4","unresolved":false,"context_lines":[{"line_number":664,"context_line":"                           context[\u0027profile_id\u0027])"},{"line_number":665,"context_line":"                    exceptions.handle(request, msg)"},{"line_number":666,"context_line":""},{"line_number":667,"context_line":"                    if port and port.id:"},{"line_number":668,"context_line":"                        nics.append({\"port-id\": port.id})"},{"line_number":669,"context_line":""},{"line_number":670,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2Bjp4%3D","line":667,"in_reply_to":"AAAAUX%2F%2BmL8%3D","updated":"2014-02-20 14:46:58.000000000","message":"Yep - this is another mistake with the older diffs that got pushed for review. My text editor misinterpreted the spacing here.\n\nThe if condition should not be inside the except but rather outside of it. What it is essentially saying is that check to see if a port was created. Also if created ensure a port.id was successfully obtained and in that case append the nics parameter to include the port.id that is needed for the n1k. Hope that makes sense. It is fixed in my newer version.","commit_id":"cd5bb532cb3dd13b3b6a55245a9b38dd90029c6f"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"233951b58a1e4c4cd9581cbd391d196baba64906","unresolved":false,"context_lines":[{"line_number":726,"context_line":"            nics \u003d None"},{"line_number":727,"context_line":""},{"line_number":728,"context_line":"        avail_zone \u003d context.get(\u0027availability_zone\u0027, None)"},{"line_number":729,"context_line":""},{"line_number":730,"context_line":"        # Create port with Network Name and Port Profile"},{"line_number":731,"context_line":"        # for the use with the plugin supporting port profiles."},{"line_number":732,"context_line":"        if api.neutron.is_port_profiles_supported():"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_9c1ad815","line":729,"updated":"2014-09-01 19:09:08.000000000","message":"The profile-specific code becomes longer. It is time to make it a separate method as follows:\n\n  if api.neutron.is_profile_support(\"....\"):\n      set_network_port_profiles()","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"7e55c704095cd56ab6391208917be92ba65cbb2d","unresolved":false,"context_lines":[{"line_number":726,"context_line":"            nics \u003d None"},{"line_number":727,"context_line":""},{"line_number":728,"context_line":"        avail_zone \u003d context.get(\u0027availability_zone\u0027, None)"},{"line_number":729,"context_line":""},{"line_number":730,"context_line":"        # Create port with Network Name and Port Profile"},{"line_number":731,"context_line":"        # for the use with the plugin supporting port profiles."},{"line_number":732,"context_line":"        if api.neutron.is_port_profiles_supported():"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_f8e11b2b","line":729,"in_reply_to":"fa98f980_9c1ad815","updated":"2014-09-09 17:05:36.000000000","message":"Done","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"233951b58a1e4c4cd9581cbd391d196baba64906","unresolved":false,"context_lines":[{"line_number":732,"context_line":"        if api.neutron.is_port_profiles_supported():"},{"line_number":733,"context_line":"            net_ids \u003d context[\u0027network_id\u0027]"},{"line_number":734,"context_line":"            nics \u003d []"},{"line_number":735,"context_line":"            for nid in net_ids:"},{"line_number":736,"context_line":"                LOG.debug(\"Create Port with \""},{"line_number":737,"context_line":"                          \"network %(netid)s \""},{"line_number":738,"context_line":"                          \"policy profile %(profile_id)s\","}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_5ce79012","line":735,"updated":"2014-09-01 19:09:08.000000000","message":"\"nid\" is not an abbrev commonly used. I prefer \"net_id\" instead.","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"7e55c704095cd56ab6391208917be92ba65cbb2d","unresolved":false,"context_lines":[{"line_number":732,"context_line":"        if api.neutron.is_port_profiles_supported():"},{"line_number":733,"context_line":"            net_ids \u003d context[\u0027network_id\u0027]"},{"line_number":734,"context_line":"            nics \u003d []"},{"line_number":735,"context_line":"            for nid in net_ids:"},{"line_number":736,"context_line":"                LOG.debug(\"Create Port with \""},{"line_number":737,"context_line":"                          \"network %(netid)s \""},{"line_number":738,"context_line":"                          \"policy profile %(profile_id)s\","}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_18d09f52","line":735,"in_reply_to":"fa98f980_5ce79012","updated":"2014-09-09 17:05:36.000000000","message":"Done","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"233951b58a1e4c4cd9581cbd391d196baba64906","unresolved":false,"context_lines":[{"line_number":738,"context_line":"                          \"policy profile %(profile_id)s\","},{"line_number":739,"context_line":"                          {\u0027netid\u0027: nid,"},{"line_number":740,"context_line":"                           \u0027profile_id\u0027: context[\u0027profile_id\u0027]})"},{"line_number":741,"context_line":"                port \u003d None"},{"line_number":742,"context_line":"                try:"},{"line_number":743,"context_line":"                    port \u003d api.neutron.port_create("},{"line_number":744,"context_line":"                        request,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_9cc81876","line":741,"updated":"2014-09-01 19:09:08.000000000","message":"Unnecessary if a comment at L.752 is applied.","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"7e55c704095cd56ab6391208917be92ba65cbb2d","unresolved":false,"context_lines":[{"line_number":738,"context_line":"                          \"policy profile %(profile_id)s\","},{"line_number":739,"context_line":"                          {\u0027netid\u0027: nid,"},{"line_number":740,"context_line":"                           \u0027profile_id\u0027: context[\u0027profile_id\u0027]})"},{"line_number":741,"context_line":"                port \u003d None"},{"line_number":742,"context_line":"                try:"},{"line_number":743,"context_line":"                    port \u003d api.neutron.port_create("},{"line_number":744,"context_line":"                        request,"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_f84f5b32","line":741,"in_reply_to":"fa98f980_9cc81876","updated":"2014-09-09 17:05:36.000000000","message":"Done","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"233951b58a1e4c4cd9581cbd391d196baba64906","unresolved":false,"context_lines":[{"line_number":748,"context_line":"                except Exception:"},{"line_number":749,"context_line":"                    msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":750,"context_line":"                           context[\u0027profile_id\u0027])"},{"line_number":751,"context_line":"                    exceptions.handle(request, msg)"},{"line_number":752,"context_line":""},{"line_number":753,"context_line":"                if port and port.id:"},{"line_number":754,"context_line":"                    nics.append({\"port-id\": port.id})"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_3cb1ecf8","line":751,"updated":"2014-09-01 19:09:08.000000000","message":"Add \"continue\" here.\nIf so, \"port \u003d None\" is unnecessary.","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"233951b58a1e4c4cd9581cbd391d196baba64906","unresolved":false,"context_lines":[{"line_number":750,"context_line":"                           context[\u0027profile_id\u0027])"},{"line_number":751,"context_line":"                    exceptions.handle(request, msg)"},{"line_number":752,"context_line":""},{"line_number":753,"context_line":"                if port and port.id:"},{"line_number":754,"context_line":"                    nics.append({\"port-id\": port.id})"},{"line_number":755,"context_line":""},{"line_number":756,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_9c76583d","line":753,"updated":"2014-09-01 19:09:08.000000000","message":"Why do you need check port.id? Is there a case where port.id becomes False?\n\nIf the above comment is appied, if is no longer needed.","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"7e55c704095cd56ab6391208917be92ba65cbb2d","unresolved":false,"context_lines":[{"line_number":750,"context_line":"                           context[\u0027profile_id\u0027])"},{"line_number":751,"context_line":"                    exceptions.handle(request, msg)"},{"line_number":752,"context_line":""},{"line_number":753,"context_line":"                if port and port.id:"},{"line_number":754,"context_line":"                    nics.append({\"port-id\": port.id})"},{"line_number":755,"context_line":""},{"line_number":756,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_b8beb3fe","line":753,"in_reply_to":"fa98f980_9c76583d","updated":"2014-09-09 17:05:36.000000000","message":"Done","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2e5ae8db13d8a5d8709956434af636f730f874f2","unresolved":false,"context_lines":[{"line_number":790,"context_line":"                    policy_profile_id\u003dprofile_id,"},{"line_number":791,"context_line":"                )"},{"line_number":792,"context_line":"            except Exception:"},{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_70b029de","line":793,"updated":"2014-09-20 17:21:42.000000000","message":"It is better to change the message to\n\n  Unable to create port for profile \"%s\"","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"53b017b15ff46393da644384cc22102d3267495a","unresolved":false,"context_lines":[{"line_number":790,"context_line":"                    policy_profile_id\u003dprofile_id,"},{"line_number":791,"context_line":"                )"},{"line_number":792,"context_line":"            except Exception:"},{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_101d1dbe","line":793,"in_reply_to":"da9df570_70b029de","updated":"2014-09-20 17:58:38.000000000","message":"Done","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2e5ae8db13d8a5d8709956434af636f730f874f2","unresolved":false,"context_lines":[{"line_number":791,"context_line":"                )"},{"line_number":792,"context_line":"            except Exception:"},{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_30b6a1dd","line":794,"updated":"2014-09-20 17:21:42.000000000","message":"Using UUID should be avoided because \"Name\" is visible in the workflow choice menu. It is the common policy in Horizon.","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"53b017b15ff46393da644384cc22102d3267495a","unresolved":false,"context_lines":[{"line_number":791,"context_line":"                )"},{"line_number":792,"context_line":"            except Exception:"},{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_307941fd","line":794,"in_reply_to":"da9df570_30b6a1dd","updated":"2014-09-20 17:58:38.000000000","message":"Done","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2e5ae8db13d8a5d8709956434af636f730f874f2","unresolved":false,"context_lines":[{"line_number":792,"context_line":"            except Exception:"},{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""},{"line_number":798,"context_line":"            if port:"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_90b58dcf","line":795,"updated":"2014-09-20 17:21:42.000000000","message":"redirect is not used. Is it an intended behavior?","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"fa9a856fee1175915d735fbab06b62c821f282d7","unresolved":false,"context_lines":[{"line_number":792,"context_line":"            except Exception:"},{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""},{"line_number":798,"context_line":"            if port:"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_bcab3a88","line":795,"in_reply_to":"da9df570_1f1a866e","updated":"2014-09-22 11:51:29.000000000","message":"Ok - thanks for the info.. Will look into this today.","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"fc440ee6dc83ab3973905862d70beae7f9db9c57","unresolved":false,"context_lines":[{"line_number":792,"context_line":"            except Exception:"},{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""},{"line_number":798,"context_line":"            if port:"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_1f1a866e","line":795,"in_reply_to":"da9df570_70b6698c","updated":"2014-09-21 10:56:44.000000000","message":"Please check horizon.message.handle for more detail. It is not redirected.","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"53b017b15ff46393da644384cc22102d3267495a","unresolved":false,"context_lines":[{"line_number":792,"context_line":"            except Exception:"},{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""},{"line_number":798,"context_line":"            if port:"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_70b6698c","line":795,"in_reply_to":"da9df570_90b58dcf","updated":"2014-09-20 17:58:38.000000000","message":"In the launch instance workflow, doesn\u0027t an exception handling automatically redirect? I am possibly mistaken. Will update.","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"2e5ae8db13d8a5d8709956434af636f730f874f2","unresolved":false,"context_lines":[{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""},{"line_number":798,"context_line":"            if port:"},{"line_number":799,"context_line":"                nics.append({\"port-id\": port.id})"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_f0c33936","line":796,"updated":"2014-09-20 17:21:42.000000000","message":"Doesn\u0027t \"continue\" mean that some nic is not connected if the corresponding port is not created successfully. It is confusing for users. I don\u0027t know what is the intended behavior.","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"fc440ee6dc83ab3973905862d70beae7f9db9c57","unresolved":false,"context_lines":[{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""},{"line_number":798,"context_line":"            if port:"},{"line_number":799,"context_line":"                nics.append({\"port-id\": port.id})"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_9f2596ad","line":796,"in_reply_to":"da9df570_506885f5","updated":"2014-09-21 10:56:44.000000000","message":"This kind of things should be detected by unit tests.","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"fa9a856fee1175915d735fbab06b62c821f282d7","unresolved":false,"context_lines":[{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""},{"line_number":798,"context_line":"            if port:"},{"line_number":799,"context_line":"                nics.append({\"port-id\": port.id})"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_dcb0fef6","line":796,"in_reply_to":"da9df570_9f2596ad","updated":"2014-09-22 11:51:29.000000000","message":"Agreed. Will add an exceptions test case also.","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"53b017b15ff46393da644384cc22102d3267495a","unresolved":false,"context_lines":[{"line_number":793,"context_line":"                msg \u003d (_(\u0027Port not created for profile-id (%s).\u0027) %"},{"line_number":794,"context_line":"                       profile_id)"},{"line_number":795,"context_line":"                exceptions.handle(request, msg)"},{"line_number":796,"context_line":"                continue"},{"line_number":797,"context_line":""},{"line_number":798,"context_line":"            if port:"},{"line_number":799,"context_line":"                nics.append({\"port-id\": port.id})"}],"source_content_type":"text/x-python","patch_set":11,"id":"da9df570_506885f5","line":796,"in_reply_to":"da9df570_f0c33936","updated":"2014-09-20 17:58:38.000000000","message":"Yes - there shouldn\u0027t be a continue here. \nIf a port create fails, we should delete all created ports, display the error message and redirect to the failure_url.","commit_id":"77b1f145a80b5afef588cf4c3f040cddb1dd6d1e"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"ab2a2aaa9a539978898768d0b6fad9220607e1b1","unresolved":false,"context_lines":[{"line_number":793,"context_line":"                       {\u0027profile_name\u0027: profile[\u0027name\u0027],"},{"line_number":794,"context_line":"                        \u0027reason\u0027: reason})"},{"line_number":795,"context_line":"                for nic in nics:"},{"line_number":796,"context_line":"                    try:"},{"line_number":797,"context_line":"                        port_id \u003d nic[\u0027port-id\u0027]"},{"line_number":798,"context_line":"                        api.neutron.port_delete(request, port_id)"},{"line_number":799,"context_line":"                    except Exception:"}],"source_content_type":"text/x-python","patch_set":12,"id":"da9df570_8b013707","line":796,"updated":"2014-09-26 17:26:39.000000000","message":"I need to add a UT to test this exception. Forgot to add that sorry. Will add and update today.","commit_id":"408befed9fa3aeffd577aa93730e80b338db524c"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"00c00c90955b96dbade8f5c93936fe508f769845","unresolved":false,"context_lines":[{"line_number":913,"context_line":"            except Exception as e:"},{"line_number":914,"context_line":"                _handle_port_error(request, profile_id, nics, e)"},{"line_number":915,"context_line":""},{"line_number":916,"context_line":"            if port:"},{"line_number":917,"context_line":"                nics.append({\"port-id\": port.id})"},{"line_number":918,"context_line":"                LOG.debug(\"Created Port %(portid)s with \""},{"line_number":919,"context_line":"                          \"network %(netid)s \""}],"source_content_type":"text/x-python","patch_set":14,"id":"5a890539_c844a0b9","line":916,"updated":"2014-11-28 14:29:38.000000000","message":"To confirm, if the call at L908 fails a redirect occurs before this line can be reached, is that correct? (Otherwise this would fail as the variable may be undefined.)","commit_id":"eb7c939b7f8f57f84d69aa4ba50d626d1c85c4a3"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"c02aef43efca6227049a60862eaf795f7e8eb555","unresolved":false,"context_lines":[{"line_number":913,"context_line":"            except Exception as e:"},{"line_number":914,"context_line":"                _handle_port_error(request, profile_id, nics, e)"},{"line_number":915,"context_line":""},{"line_number":916,"context_line":"            if port:"},{"line_number":917,"context_line":"                nics.append({\"port-id\": port.id})"},{"line_number":918,"context_line":"                LOG.debug(\"Created Port %(portid)s with \""},{"line_number":919,"context_line":"                          \"network %(netid)s \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a961159_740cfced","line":916,"in_reply_to":"5a890539_c844a0b9","updated":"2014-12-11 17:50:49.000000000","message":"Yes that is correct. And that is what the two new test cases with the port_error aim to test as well.","commit_id":"eb7c939b7f8f57f84d69aa4ba50d626d1c85c4a3"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"af343b7fab9c4999fa8f3e36acd058708d384050","unresolved":false,"context_lines":[{"line_number":928,"context_line":"    def set_network_port_profiles(self, request, net_ids, profile_id):"},{"line_number":929,"context_line":"        # Create port with Network ID and Port Profile"},{"line_number":930,"context_line":"        # for the use with the plugin supporting port profiles."},{"line_number":931,"context_line":"        def _handle_port_error(request, profile_id, nics, reason):"},{"line_number":932,"context_line":"            try:"},{"line_number":933,"context_line":"                profile \u003d api.neutron.profile_get("},{"line_number":934,"context_line":"                    request,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_fc712aa9","line":931,"updated":"2014-12-29 18:38:33.000000000","message":"There is no need to define this method inside the method.","commit_id":"526392e7cc48db9f0d11403d694ab79612267425"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"0668b5af89131fd15118c34f15612b6cb645cf72","unresolved":false,"context_lines":[{"line_number":928,"context_line":"    def set_network_port_profiles(self, request, net_ids, profile_id):"},{"line_number":929,"context_line":"        # Create port with Network ID and Port Profile"},{"line_number":930,"context_line":"        # for the use with the plugin supporting port profiles."},{"line_number":931,"context_line":"        def _handle_port_error(request, profile_id, nics, reason):"},{"line_number":932,"context_line":"            try:"},{"line_number":933,"context_line":"                profile \u003d api.neutron.profile_get("},{"line_number":934,"context_line":"                    request,"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_fe898626","line":931,"in_reply_to":"3a961159_fc712aa9","updated":"2015-01-07 19:10:10.000000000","message":"Done","commit_id":"526392e7cc48db9f0d11403d694ab79612267425"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"af343b7fab9c4999fa8f3e36acd058708d384050","unresolved":false,"context_lines":[{"line_number":943,"context_line":"                        port_id \u003d nic[\u0027port-id\u0027]"},{"line_number":944,"context_line":"                        api.neutron.port_delete(request, port_id)"},{"line_number":945,"context_line":"                    except Exception:"},{"line_number":946,"context_line":"                        msg \u003d _(\u0027Failed to delete port %s\u0027) % port_id"},{"line_number":947,"context_line":"                        exceptions.handle(request, msg)"},{"line_number":948,"context_line":"            except Exception:"},{"line_number":949,"context_line":"                msg \u003d _(\u0027Failed to get profile %s\u0027) % profile_id"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_fcf68af8","line":946,"updated":"2014-12-29 18:38:33.000000000","message":"Hmm.... a bit strange error message.\nIf port_delete fails, A message \"Failed to delete port\" will be displayed, but a user would see no message \"Unable to create port\"......","commit_id":"526392e7cc48db9f0d11403d694ab79612267425"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"0668b5af89131fd15118c34f15612b6cb645cf72","unresolved":false,"context_lines":[{"line_number":943,"context_line":"                        port_id \u003d nic[\u0027port-id\u0027]"},{"line_number":944,"context_line":"                        api.neutron.port_delete(request, port_id)"},{"line_number":945,"context_line":"                    except Exception:"},{"line_number":946,"context_line":"                        msg \u003d _(\u0027Failed to delete port %s\u0027) % port_id"},{"line_number":947,"context_line":"                        exceptions.handle(request, msg)"},{"line_number":948,"context_line":"            except Exception:"},{"line_number":949,"context_line":"                msg \u003d _(\u0027Failed to get profile %s\u0027) % profile_id"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_be737e4c","line":946,"in_reply_to":"3a961159_fcf68af8","updated":"2015-01-07 19:10:10.000000000","message":"I agree. This does mean the previous error message will not be displayed properly. Will fix.","commit_id":"526392e7cc48db9f0d11403d694ab79612267425"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"af343b7fab9c4999fa8f3e36acd058708d384050","unresolved":false,"context_lines":[{"line_number":949,"context_line":"                msg \u003d _(\u0027Failed to get profile %s\u0027) % profile_id"},{"line_number":950,"context_line":"                exceptions.handle(request, msg)"},{"line_number":951,"context_line":"            redirect \u003d self.success_url"},{"line_number":952,"context_line":"            exceptions.handle(request, msg, redirect\u003dredirect)"},{"line_number":953,"context_line":""},{"line_number":954,"context_line":"        nics \u003d []"},{"line_number":955,"context_line":"        for net_id in net_ids:"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_3cd8127f","line":952,"updated":"2014-12-29 18:38:33.000000000","message":"An error message handling needs to be improved. Hmm.... If profile_get fails, a user will see a message at L.949 twice.","commit_id":"526392e7cc48db9f0d11403d694ab79612267425"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"0668b5af89131fd15118c34f15612b6cb645cf72","unresolved":false,"context_lines":[{"line_number":949,"context_line":"                msg \u003d _(\u0027Failed to get profile %s\u0027) % profile_id"},{"line_number":950,"context_line":"                exceptions.handle(request, msg)"},{"line_number":951,"context_line":"            redirect \u003d self.success_url"},{"line_number":952,"context_line":"            exceptions.handle(request, msg, redirect\u003dredirect)"},{"line_number":953,"context_line":""},{"line_number":954,"context_line":"        nics \u003d []"},{"line_number":955,"context_line":"        for net_id in net_ids:"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a961159_fe90a644","line":952,"in_reply_to":"3a961159_3cd8127f","updated":"2015-01-07 19:10:10.000000000","message":"Done","commit_id":"526392e7cc48db9f0d11403d694ab79612267425"}],"openstack_dashboard/test/test_data/neutron_data.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"233951b58a1e4c4cd9581cbd391d196baba64906","unresolved":false,"context_lines":[{"line_number":962,"context_line":"                    \u0027id\u0027: \u00277aa23d91-ffff-abab-dcdc-3411ae767e8a\u0027,"},{"line_number":963,"context_line":"                    \u0027name\u0027: \u0027net4\u0027,"},{"line_number":964,"context_line":"                    \u0027status\u0027: \u0027ACTIVE\u0027,"},{"line_number":965,"context_line":"                    \u0027subnets\u0027: [\u0027e899c972-cafe-41f1-ffff-dac6e3bcd8c9\u0027],"},{"line_number":966,"context_line":"                    \u0027tenant_id\u0027: \u00271\u0027,"},{"line_number":967,"context_line":"                    \u0027router:external\u0027: False,"},{"line_number":968,"context_line":"                    \u0027shared\u0027: False}"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_1ce8a8b3","line":965,"updated":"2014-09-01 19:09:08.000000000","message":"subnet ID is not unique. There is a duplicated subnet.","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"},{"author":{"_account_id":6620,"name":"Abishek Subramanian","email":"absubram@cisco.com","username":"absubram"},"change_message_id":"7e55c704095cd56ab6391208917be92ba65cbb2d","unresolved":false,"context_lines":[{"line_number":962,"context_line":"                    \u0027id\u0027: \u00277aa23d91-ffff-abab-dcdc-3411ae767e8a\u0027,"},{"line_number":963,"context_line":"                    \u0027name\u0027: \u0027net4\u0027,"},{"line_number":964,"context_line":"                    \u0027status\u0027: \u0027ACTIVE\u0027,"},{"line_number":965,"context_line":"                    \u0027subnets\u0027: [\u0027e899c972-cafe-41f1-ffff-dac6e3bcd8c9\u0027],"},{"line_number":966,"context_line":"                    \u0027tenant_id\u0027: \u00271\u0027,"},{"line_number":967,"context_line":"                    \u0027router:external\u0027: False,"},{"line_number":968,"context_line":"                    \u0027shared\u0027: False}"}],"source_content_type":"text/x-python","patch_set":9,"id":"fa98f980_585867fa","line":965,"in_reply_to":"fa98f980_1ce8a8b3","updated":"2014-09-09 17:05:36.000000000","message":"Done","commit_id":"41a69d1f55aab3d7a24e4cdc27068d4e70da6235"}]}
