diff --git a/ansible/container-image-build.yml b/ansible/container-image-build.yml index 16e4f8071..026c5cec7 100644 --- a/ansible/container-image-build.yml +++ b/ansible/container-image-build.yml @@ -53,7 +53,7 @@ kolla-build --config-dir {{ kolla_build_config_path }} --engine {{ container_engine }} - {% if kolla_docker_registry is not none %}--registry {{ kolla_docker_registry }}{% endif %} + {% if kolla_docker_registry %}--registry {{ kolla_docker_registry }}{% endif %} {% if push_images | bool %}--push{% endif %} {% if nocache | bool %}--nocache{% endif %} {% if kolla_base_arch != ansible_facts.architecture %}--platform {{ platform }}{% endif %} diff --git a/releasenotes/notes/fix-empty-registry-bug.yaml b/releasenotes/notes/fix-empty-registry-bug.yaml new file mode 100644 index 000000000..8efe04310 --- /dev/null +++ b/releasenotes/notes/fix-empty-registry-bug.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixes an issue building images with a regex when no image registry is set + `LP#2112646 `__