Merge "Handle empty IMAGE_URL lines in devstack_cache"
This commit is contained in:
commit
728a9e7dfb
@ -92,6 +92,8 @@ def local_prep(distribution):
|
|||||||
line = line[len('${IMAGE_URLS:-'):]
|
line = line[len('${IMAGE_URLS:-'):]
|
||||||
if line.endswith('}'):
|
if line.endswith('}'):
|
||||||
line = line[:-1]
|
line = line[:-1]
|
||||||
|
if not line:
|
||||||
|
continue
|
||||||
if line[0] == line[-1] == '"':
|
if line[0] == line[-1] == '"':
|
||||||
line = line[1:-1]
|
line = line[1:-1]
|
||||||
images += [x.strip() for x in line.split(',')]
|
images += [x.strip() for x in line.split(',')]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user