remove eventlet import and leftover function from previous refactoring

This commit is contained in:
Jason Kölker 2011-06-13 14:58:38 -05:00
parent 721b8ffc80
commit d36ff21023

View File

@ -20,8 +20,6 @@ import optparse
import os import os
import urlparse import urlparse
from eventlet import greenthread
from glance import registry from glance import registry
from glance.common import config, exception from glance.common import config, exception
@ -150,16 +148,6 @@ def parse_uri_tokens(parsed_uri, example_url):
return user, key, authurl, container, obj return user, key, authurl, container, obj
def _log_scheduled_delete(gt, id, options, uri):
try:
gt.wait()
except (UnsupportedBackend, exception.NotFound):
msg = "Failed to delete image from store (%s). "
logger.error(msg % uri)
registry.update_image_metadata(options, id, {'status': 'deleted'})
def schedule_delete_from_backend(uri, options, id, **kwargs): def schedule_delete_from_backend(uri, options, id, **kwargs):
""" """
Given a uri and a time, schedule the deletion of an image. Given a uri and a time, schedule the deletion of an image.