Skip to content

Commit 25ddeb5

Browse files
committed
Fix kolla-images.py for latest master Kolla Ansible
Kolla-ansible change [1] introduced ``docker_image_url`` variable and it replaced the prefix for all kolla images. Changed replacement in kolla-images.py accordingly to fix ``image_map`` not being able to be constructed well as before. [1] https://review.opendev.org/c/openstack/kolla-ansible/+/951747
1 parent 6199219 commit 25ddeb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/kolla-images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def check_image_map(kolla_ansible_path: str):
311311
image_map = yaml.safe_load(image_map_str)
312312
image_var_re = re.compile(r"^([a-z0-9_]+)_image$")
313313
image_map = {
314-
image_var_re.match(image_var).group(1): image.split("/")[-1].replace('{{ docker_image_name_prefix }}', '')
314+
image_var_re.match(image_var).group(1): image.split("/")[-1].replace('{{ docker_image_url }}', '')
315315
for image_var, image in image_map.items()
316316
}
317317
# Filter out unsupported images.

0 commit comments

Comments
 (0)