Use os.path.exists when caching devstack images

os.path.exist does not exist. Use os.path.exists instead.

Change-Id: Iad18569a07fd714733f9c3a13e2fcf53d012d516
This commit is contained in:
Clark Boylan 2014-04-17 13:43:21 -07:00
parent 1db4cd9c3e
commit e4db5c77ac

View File

@ -79,7 +79,7 @@ def _find_images(basedir):
images = []
try:
image_tool = os.path.join(DEVSTACK, 'tools', 'image_list.sh')
if os.path.exist(image_tool):
if os.path.exists(image_tool):
images = subprocess.check_output(image_tool).split('\n')
except subprocess.CalledProcessError as ce:
print "image_list.sh failed"