Merge "Use os.path.exists when caching devstack images"
This commit is contained in:
commit
8ea45eb3fb
@ -79,7 +79,7 @@ def _find_images(basedir):
|
|||||||
images = []
|
images = []
|
||||||
try:
|
try:
|
||||||
image_tool = os.path.join(DEVSTACK, 'tools', 'image_list.sh')
|
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')
|
images = subprocess.check_output(image_tool).split('\n')
|
||||||
except subprocess.CalledProcessError as ce:
|
except subprocess.CalledProcessError as ce:
|
||||||
print "image_list.sh failed"
|
print "image_list.sh failed"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user