Merge "Use os.path.exists when caching devstack images"

This commit is contained in:
Jenkins 2014-04-17 21:07:53 +00:00 committed by Gerrit Code Review
commit 8ea45eb3fb

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"