)]}'
{"nova/api/openstack/compute/servers.py":[{"author":{"_account_id":6167,"name":"Ken\u0027ichi Ohmichi","email":"ken1ohmichi@gmail.com","username":"oomichi"},"change_message_id":"ccd5e452ce9ba653a7412f929dafe9dd4d6c59ef","unresolved":false,"context_lines":[{"line_number":577,"context_line":"        try:"},{"line_number":578,"context_line":"            availability_zone, host, node \u003d parse_az(context,"},{"line_number":579,"context_line":"                                                     availability_zone)"},{"line_number":580,"context_line":"        except exception.InvalidInput as err:"},{"line_number":581,"context_line":"            raise exc.HTTPBadRequest(explanation\u003dsix.text_type(err))"},{"line_number":582,"context_line":"        if host or node:"},{"line_number":583,"context_line":"            authorize(context, {}, \u0027create:forced_host\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"dab17558_e88693b7","line":580,"range":{"start_line":580,"start_character":15,"end_line":580,"end_character":37},"updated":"2016-05-17 05:59:00.000000000","message":"This case happens only if az name contains 3+ \":\" by the following code:\n\n 505             c \u003d availability_zone.count(\u0027:\u0027)\n 506             if c \u003d\u003d 1:\n 507                 availability_zone, forced_host \u003d availability_zone.split(\u0027:\u0027)\n 508             elif c \u003d\u003d 2:\n 509                 if \u0027::\u0027 in availability_zone:\n 510                     availability_zone, forced_node \u003d \\\n 511                             availability_zone.split(\u0027::\u0027)\n 512                 else:\n 513                     availability_zone, forced_host, forced_node \u003d \\\n 514                             availability_zone.split(\u0027:\u0027)\n 515             else:\n 516                 raise exception.InvalidIHowenput(\n 517                         reason\u003d\"Unable to parse availability_zone\")\n\nIdeally, it would be better to handle this case with JSON-Schema because the error message would be consistent and API users can understand easily what is problem.\nHowever, it is find to make it out of scope for avoiding internal error at this time.","commit_id":"26dcd0675a584693d923cdb2aec3cc3a591cb897"}]}
