def _kill(req, image_id, from_state):
 registry.update_image_metadata(req.context, image_id, {'status': 'killed'}, from_state=from_state)

def _kill ( req , image_id , from_state ) : registry . update_image_metadata ( req . context , image_id , { 'status' : 'killed' } , from_state = from_state )
marks the image status to killed .