)]}'
{"rally/common/plugin/discover.py":[{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"9dd3e14b9f7241d9842252bb218f12b1d3adf74e","unresolved":false,"context_lines":[{"line_number":60,"context_line":"                try:"},{"line_number":61,"context_line":"                    sys.modules[module_name] \u003d importutils.import_module("},{"line_number":62,"context_line":"                        module_name)"},{"line_number":63,"context_line":"                except exceptions.PluginWithSuchNameExists:"},{"line_number":64,"context_line":"                    raise exceptions.RallyException("},{"line_number":65,"context_line":"                        \"Module with such name %(name)s already \""},{"line_number":66,"context_line":"                        \"imported. Its allocated at %(path)s\" % {"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a740942_072ec1a4","line":63,"updated":"2015-12-14 08:51:50.000000000","message":"this is wrong place to fix the thing with the wrong approach, try to avoid hiding races and re-raising exceptions is hiding traces. \n\nYou should fix the code that raises PluginWithSuchNameExists. \nIt is here:\nhttps://github.com/openstack/rally/blob/master/rally/common/plugin/plugin.py#L150-L151\n\nAs I said to you before, you should raise exception with proper message, which means that you should add the module of both plugins.","commit_id":"7e6c4fca2f6d1455635dc28c164ff8e96f35cce7"}],"rally/exceptions.py":[{"author":{"_account_id":8491,"name":"Illia Khudoshyn","email":"ikhudoshyn@mirantis.com","username":"ikhudoshyn"},"change_message_id":"abd5dd049c6793e1d8c05e76bfa79d36b8af7968","unresolved":false,"context_lines":[{"line_number":87,"context_line":"class PluginWithSuchNameExists(RallyException):"},{"line_number":88,"context_line":"    msg_fmt \u003d _(\"Plugin with such name: %(name)s already exists in \""},{"line_number":89,"context_line":"                \"%(namespace)s namespace. It\u0027s module allocates at \""},{"line_number":90,"context_line":"                \"%(path1)s. You are trying to add plugin whose module \""},{"line_number":91,"context_line":"                \"allocates at %(path2)s.\")"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5a710552_4d0c7a94","line":90,"updated":"2015-12-15 16:07:45.000000000","message":"Can we please have more informative names for paths, like existing_path and new_path?","commit_id":"725e230be89a81ae402d15dfefa528b43ee399f3"},{"author":{"_account_id":12395,"name":"Roman Vasylets","email":"pomeo92@gmail.com","username":"rvasilets"},"change_message_id":"1fc0e7a21f5076df6c260c0e645365d5c01cc585","unresolved":false,"context_lines":[{"line_number":87,"context_line":"class PluginWithSuchNameExists(RallyException):"},{"line_number":88,"context_line":"    msg_fmt \u003d _(\"Plugin with such name: %(name)s already exists in \""},{"line_number":89,"context_line":"                \"%(namespace)s namespace. It\u0027s module allocates at \""},{"line_number":90,"context_line":"                \"%(path1)s. You are trying to add plugin whose module \""},{"line_number":91,"context_line":"                \"allocates at %(path2)s.\")"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5a710552_bdfae2bb","line":90,"in_reply_to":"5a710552_4d0c7a94","updated":"2015-12-15 20:26:40.000000000","message":"Sure","commit_id":"725e230be89a81ae402d15dfefa528b43ee399f3"}]}
