From e204daab5fa487e3cf5ff32552ed196f9e419a46 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sun, 16 Feb 2014 07:15:49 -0800 Subject: [PATCH] Handle empty IMAGE_URL lines in devstack_cache Handles lines of the form: IMAGE_URLS=${IMAGE_URLS:-};; Change-Id: Id99586393d28c3c11846f76634256cb497812e5e --- .../openstack_project/files/nodepool/scripts/cache_devstack.py | 2 ++ 1 file changed, 2 insertions(+) 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(',')]