Merge "Handle empty IMAGE_URL lines in devstack_cache"

This commit is contained in:
Jenkins 2014-02-17 19:13:49 +00:00 committed by Gerrit Code Review
commit 728a9e7dfb

View File

@ -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(',')]