Skip to content
Snippets Groups Projects
Commit 713da073 authored by Mark Goddard's avatar Mark Goddard
Browse files

Don't specify a docker registry when kolla_docker_registry is defined but None

This is the default.
parent 19614e94
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,9 @@ ...@@ -38,7 +38,9 @@
username: "{{ kolla_docker_registry_username }}" username: "{{ kolla_docker_registry_username }}"
password: "{{ kolla_docker_registry_password }}" password: "{{ kolla_docker_registry_password }}"
reauthorize: yes reauthorize: yes
when: kolla_docker_registry_username is not none and kolla_docker_registry_password is not none when:
- kolla_docker_registry_username is not none
- kolla_docker_registry_password is not none
- name: Ensure Kolla container images are built - name: Ensure Kolla container images are built
shell: > shell: >
...@@ -47,7 +49,7 @@ ...@@ -47,7 +49,7 @@
kolla-build \ kolla-build \
--config-dir {{ kolla_build_config_path }} \ --config-dir {{ kolla_build_config_path }} \
{% if item.type is defined %}--type {{ item.type }}{% endif %} \ {% if item.type is defined %}--type {{ item.type }}{% endif %} \
{% if kolla_docker_registry != "" and kolla_docker_registry != None %}--registry {{ kolla_docker_registry }}{% endif %} \ {% if kolla_docker_registry is not none %}--registry {{ kolla_docker_registry }}{% endif %} \
{% if push_images | bool %}--push{% endif %} \ {% if push_images | bool %}--push{% endif %} \
{{ item.regexes }} 2>&1 | tee --append {{ kolla_build_log_path }} {{ item.regexes }} 2>&1 | tee --append {{ kolla_build_log_path }}
with_items: "{{ container_image_sets }}" with_items: "{{ container_image_sets }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment