From e4db5c77acc06c6f0f3b2ba2ea34128f1c08ff36 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 17 Apr 2014 13:43:21 -0700 Subject: [PATCH] Use os.path.exists when caching devstack images os.path.exist does not exist. Use os.path.exists instead. Change-Id: Iad18569a07fd714733f9c3a13e2fcf53d012d516 --- .../openstack_project/files/nodepool/scripts/cache_devstack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/nodepool/scripts/cache_devstack.py b/modules/openstack_project/files/nodepool/scripts/cache_devstack.py index 7434e48dba..a8abdcf109 100755 --- a/modules/openstack_project/files/nodepool/scripts/cache_devstack.py +++ b/modules/openstack_project/files/nodepool/scripts/cache_devstack.py @@ -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"