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"