To avoid creating empty volume for heat

1. when set heat_dev_mode to no, the volume will be empty[0],
this ps to avoid creating empty volume.

[0]: https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/heat/defaults/main.yml#L13

Change-Id: Id22469442a4713f53646ffec2c5a960722fccb44
This commit is contained in:
ZhijunWei 2018-05-17 14:06:52 +00:00 committed by weizj
parent 5c1f0226d3
commit b3b0d28eb6
2 changed files with 2 additions and 2 deletions

View File

@ -20,6 +20,6 @@
BOOTSTRAP:
name: "bootstrap_heat"
restart_policy: "never"
volumes: "{{ heat_api.volumes }}"
volumes: "{{ heat_api.volumes|reject('equalto', '')|list }}"
run_once: True
delegate_to: "{{ groups[heat_api.group][0] }}"

View File

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