)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1f5b2bc495fbeb4a95eadd81ee4487b77625982b","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix tempest config creation on Kilo"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Fixes bug:1543414"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: I08ffde341654127e0299a09c030090d78d2b4708"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5a5ae5dd_92f2a66e","line":9,"updated":"2016-02-09 12:25:14.000000000","message":"Closes-Bug: #1543414","commit_id":"6b64585bb4c79e97d7c9142169b3f61d5a754056"}],"rally/verification/tempest/config.py":[{"author":{"_account_id":7428,"name":"Yaroslav Lobankov","email":"lobankovyv@gmail.com","username":"ylobankov"},"change_message_id":"46ed1fd7f5599e2806a714bbe9fc18e04971e4ab","unresolved":false,"context_lines":[{"line_number":131,"context_line":"                        \"HTTP error code %d.\") % response.status_code"},{"line_number":132,"context_line":"            raise exceptions.TempestConfigCreationFailure(msg)"},{"line_number":133,"context_line":""},{"line_number":134,"context_line":"    def _get_service_url(self, service_name):"},{"line_number":135,"context_line":"        s_type \u003d self._get_service_type_by_service_name(service_name)"},{"line_number":136,"context_line":"        if hasattr(self.keystone, \"service_catalog\"):"},{"line_number":137,"context_line":"            available_endpoints \u003d self.keystone.service_catalog.get_endpoints()"}],"source_content_type":"text/x-python","patch_set":2,"id":"5a5ae5dd_1a00ffa9","line":134,"updated":"2016-02-09 16:15:44.000000000","message":"The fix works. But It looks like we have redundant code here. I tried this\n\n\n    def _get_service_url(self, service_name):\n        s_type \u003d self._get_service_type_by_service_name(service_name)\n        available_endpoints \u003d self.keystone.service_catalog.get_endpoints()\n        service_endpoints \u003d available_endpoints.get(s_type, [])\n        for endpoint in service_endpoints:\n            if \"publicURL\" in endpoint:  # Kilo and older\n                return endpoint[\"publicURL\"]\n            if endpoint[\"interface\"] \u003d\u003d \"public\":\n                return endpoint[\"url\"]\n\nand it worked fine against my environment (MOS 7.0 - Kilo OpenStack). So I guess it will work for new releases as well.","commit_id":"f9783b1a0481d4cbf3212d5148b2ec97bc58d5f6"}]}
