)]}'
{"nova/templates/bin/_health-probe.py.tpl":[{"author":{"_account_id":20466,"name":"Tin Lam","email":"tin@lam.wtf","username":"tinlam"},"change_message_id":"03b201beb5318d6b942a617760e83ad74e2012a6","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        sys.stderr.write(\"Health probe unable to reach message bus\")"},{"line_number":62,"context_line":"        sys.exit(0)  # return success"},{"line_number":63,"context_line":"    except oslo_messaging.rpc.client.RemoteError as re:"},{"line_number":64,"context_line":"        message \u003d getattr(re, \"message\", str(re))"},{"line_number":65,"context_line":"        if (\"Endpoint does not support RPC method\" in message) or \\"},{"line_number":66,"context_line":"                (\"Endpoint does not support RPC version\" in message):"},{"line_number":67,"context_line":"            sys.exit(0)  # Call reached the service"}],"source_content_type":"text/x-smarty","patch_set":2,"id":"5fc1f717_77dab6e9","line":64,"range":{"start_line":64,"start_character":7,"end_line":64,"end_character":49},"updated":"2019-03-23 16:23:37.000000000","message":"can this not be just\n\n   message \u003d str(re)\n\nThat should work with py2 and py3 without us needing to fetch the \"message\" attribute.  This looks to work for me: \n\nhttp://paste.openstack.org/show/748280/","commit_id":"d4e882b04a6ee0178f141f072936196180f5d625"},{"author":{"_account_id":12281,"name":"Itxaka","email":"igarcia@suse.com","username":"itxaka"},"change_message_id":"4a3794c859c398d81e1b9d74cd0d567caeb23a3e","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        sys.stderr.write(\"Health probe unable to reach message bus\")"},{"line_number":62,"context_line":"        sys.exit(0)  # return success"},{"line_number":63,"context_line":"    except oslo_messaging.rpc.client.RemoteError as re:"},{"line_number":64,"context_line":"        message \u003d getattr(re, \"message\", str(re))"},{"line_number":65,"context_line":"        if (\"Endpoint does not support RPC method\" in message) or \\"},{"line_number":66,"context_line":"                (\"Endpoint does not support RPC version\" in message):"},{"line_number":67,"context_line":"            sys.exit(0)  # Call reached the service"}],"source_content_type":"text/x-smarty","patch_set":2,"id":"5fc1f717_aef985c8","line":64,"range":{"start_line":64,"start_character":7,"end_line":64,"end_character":49},"in_reply_to":"5fc1f717_77dab6e9","updated":"2019-03-25 10:16:15.000000000","message":"Good point but due to (possible) encoding issues I took this approach instead as to make sure sure, sure, sure that Im not breaking any existing functionality. Are oslo_message errors translated? Because that could lead to issues here.\n\nIn any case, I do not have any preference here as long as it works under py2+3 and I dont break any existing functionality","commit_id":"d4e882b04a6ee0178f141f072936196180f5d625"}]}
