)]}'
{"nova/tests/unit/image/fake.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"50894efe63ca8219f65a3f9f161d33df5fcab112","unresolved":false,"context_lines":[{"line_number":196,"context_line":"        if image_id in self.images:"},{"line_number":197,"context_line":"            raise exception.CouldNotUploadImage(image_id\u003dimage_id)"},{"line_number":198,"context_line":"        self.images[image_id] \u003d copy.deepcopy(metadata)"},{"line_number":199,"context_line":"        # Glance sets the image value when an image is created, so we"},{"line_number":200,"context_line":"        # need to do that here to fake things out if it\u0027s not provided"},{"line_number":201,"context_line":"        # by the caller. This is needed to avoid a KeyError in the"},{"line_number":202,"context_line":"        # image-size API."}],"source_content_type":"text/x-python","patch_set":1,"id":"ffe62b97_bb3a84e4","line":199,"range":{"start_line":199,"start_character":26,"end_line":199,"end_character":31},"updated":"2017-03-24 16:10:12.000000000","message":"size","commit_id":"67c27d28371f2973d1aad0aeefee4aec1bff146d"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"b3f4e04db41d1cff4e923ccbd742881b0e14b064","unresolved":false,"context_lines":[{"line_number":196,"context_line":"        if image_id in self.images:"},{"line_number":197,"context_line":"            raise exception.CouldNotUploadImage(image_id\u003dimage_id)"},{"line_number":198,"context_line":"        self.images[image_id] \u003d copy.deepcopy(metadata)"},{"line_number":199,"context_line":"        # Glance sets the size value when an image is created, so we"},{"line_number":200,"context_line":"        # need to do that here to fake things out if it\u0027s not provided"},{"line_number":201,"context_line":"        # by the caller. This is needed to avoid a KeyError in the"},{"line_number":202,"context_line":"        # image-size API."}],"source_content_type":"text/x-python","patch_set":2,"id":"ffe62b97_894ac852","line":199,"updated":"2017-03-24 22:54:10.000000000","message":"Looks like we also need to set \u0027status\u0027?\n\nhttp://logs.openstack.org/34/449334/6/check/gate-nova-tox-functional-ubuntu-xenial/8ced93a/console.html#_2017-03-24_16_36_00_219392","commit_id":"220c33cd2ecc56827a586878cbd6662f6372e74d"},{"author":{"_account_id":20223,"name":"zhaolihui","email":"zhaolh@awcloud.com","username":"zhaolihui"},"change_message_id":"7587bee6b0360cb44dedd83b3eab2ef402f4b76b","unresolved":false,"context_lines":[{"line_number":201,"context_line":"        # by the caller. This is needed to avoid a KeyError in the"},{"line_number":202,"context_line":"        # image-size API."},{"line_number":203,"context_line":"        if \u0027size\u0027 not in image_meta:"},{"line_number":204,"context_line":"            image_meta[\u0027size\u0027] \u003d None"},{"line_number":205,"context_line":"        # Similarly, Glance provides the status on the image once it\u0027s created"},{"line_number":206,"context_line":"        # and this is checked in the compute API when booting a server from"},{"line_number":207,"context_line":"        # this image, so we just fake it out to be \u0027active\u0027 even though this"}],"source_content_type":"text/x-python","patch_set":4,"id":"ffe62b97_965ac04c","line":204,"range":{"start_line":204,"start_character":12,"end_line":204,"end_character":37},"updated":"2017-03-27 10:01:54.000000000","message":"Maybe image_meta[\u0027size\u0027] \u003d 0 or -1,\nIf glance not set the size, test code int(image_meta[\u0027size\u0027]) function will has error when image_meta[\u0027size\u0027] \u003d None","commit_id":"df75933cd8d3ef075e047d67726d72e996bba9f2"}]}
