Merge "Remove invalid comment about glance"

This commit is contained in:
Zuul 2018-03-28 01:51:34 +00:00 committed by Gerrit Code Review
commit 1fd5d0827a

View File

@ -72,8 +72,6 @@ class GlanceDriver(driver.ContainerImageDriver):
return False
def pull_image(self, context, repo, tag, image_pull_policy):
# TODO(shubhams): glance driver does not handle tags
# once metadata is stored in db then handle tags
image_loaded = False
image = self._search_image_on_host(context, repo, tag)
@ -114,11 +112,8 @@ class GlanceDriver(driver.ContainerImageDriver):
return {'image': repo, 'path': out_path}, image_loaded
def search_image(self, context, repo, tag, exact_match):
# TODO(mkrai): glance driver does not handle tags
# once metadata is stored in db then handle tags
LOG.debug('Searching image in glance %s', repo)
try:
# TODO(hongbin): find image by both repo and tag
return utils.find_images(context, repo, tag, exact_match)
except Exception as e:
raise exception.ZunException(six.text_type(e))