Merge "Avoid creating an empty volume"

This commit is contained in:
Zuul 2018-04-23 14:28:00 +00:00 committed by Gerrit Code Review
commit 450e4f4a80
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
common_options: "{{ docker_common_options }}" common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}" name: "{{ service.container_name }}"
image: "{{ service.image }}" image: "{{ service.image }}"
volumes: "{{ service.volumes }}" volumes: "{{ service.volumes|reject('equalto', '')|list }}"
when: when:
- action != "config" - action != "config"
- inventory_hostname in glance_api_hosts - inventory_hostname in glance_api_hosts
@ -36,7 +36,7 @@
common_options: "{{ docker_common_options }}" common_options: "{{ docker_common_options }}"
name: "{{ service.container_name }}" name: "{{ service.container_name }}"
image: "{{ service.image }}" image: "{{ service.image }}"
volumes: "{{ service.volumes }}" volumes: "{{ service.volumes|reject('equalto', '')|list }}"
when: when:
- action != "config" - action != "config"
- inventory_hostname in groups[service.group] - inventory_hostname in groups[service.group]

View File

@ -31,7 +31,7 @@
BOOTSTRAP: BOOTSTRAP:
name: "bootstrap_glance" name: "bootstrap_glance"
restart_policy: "never" restart_policy: "never"
volumes: "{{ glance_api.volumes }}" volumes: "{{ glance_api.volumes|reject('equalto', '')|list }}"
run_once: True run_once: True
delegate_to: "{{ groups[glance_api.group][0] }}" delegate_to: "{{ groups[glance_api.group][0] }}"

View File

@ -117,7 +117,7 @@
common_options: "{{ docker_common_options }}" common_options: "{{ docker_common_options }}"
name: "{{ item.value.container_name }}" name: "{{ item.value.container_name }}"
image: "{{ item.value.image }}" image: "{{ item.value.image }}"
volumes: "{{ item.value.volumes }}" volumes: "{{ item.value.volumes|reject('equalto', '')|list }}"
register: check_glance_containers register: check_glance_containers
when: when:
- action != "config" - action != "config"