Fix to use the new NOVA API to find images

Change-Id: I44ff02def0d03757a53f7c1caf105781b1f5a23e
This commit is contained in:
Yichen Wang 2017-06-21 15:24:23 -07:00
parent 8bbd410cdb
commit 4db46e2915
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class BaseCompute(object):
Given a image name return the image id
"""
try:
image = self.novaclient.images.find(name=image_name)
image = self.novaclient.glance.find_image(image_name)
return image
except Exception:
return None