Skip to content

Commit

Permalink
Remove unnecessary image list in OSAPI
Browse files Browse the repository at this point in the history
Fixes bug 886139

Change-Id: I152b0e29a5742b7fc0fb25fc64f5bfb25f351b56
  • Loading branch information
Brian Waldon committed Nov 4, 2011
1 parent 67a1c25 commit 2915d05
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nova/api/openstack/servers.py
Expand Up @@ -368,8 +368,6 @@ def create(self, req, body):
image_href)
kernel_id, ramdisk_id = self._get_kernel_ramdisk_from_image(
req, image_service, image_id)
images = set([str(x['id']) for x in image_service.index(context)])
assert str(image_id) in images
except Exception, e:
msg = _("Cannot find requested image %(image_href)s: %(e)s" %
locals())
Expand Down

0 comments on commit 2915d05

Please sign in to comment.