diff --git a/modules/openstack_project/files/nodepool/scripts/cache_devstack.py b/modules/openstack_project/files/nodepool/scripts/cache_devstack.py index 93f8454886..f48b556521 100755 --- a/modules/openstack_project/files/nodepool/scripts/cache_devstack.py +++ b/modules/openstack_project/files/nodepool/scripts/cache_devstack.py @@ -92,6 +92,8 @@ def local_prep(distribution): line = line[len('${IMAGE_URLS:-'):] if line.endswith('}'): line = line[:-1] + if not line: + continue if line[0] == line[-1] == '"': line = line[1:-1] images += [x.strip() for x in line.split(',')]