Fix docker wait requires at least one argument

In the graceful shutdown for mergers and executors if we skip the docker
exec to stop the container we also need to skip the docker wait. The
reason for this is docker wait exits with an error code if not provided
with any arguments to wait for.

Change-Id: Id09666ee23e1a9599d477b63a89559e4ab1d21bf
This commit is contained in:
Clark Boylan 2022-09-07 15:17:10 -07:00
parent 907efec84d
commit 9313c8e879
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@
chdir: /etc/zuul-executor
become: true
become_user: root
when: executor_container_list.stdout_lines | length > 0
- name: Remove Zuul Executor containers
shell:
cmd: docker-compose down

View File

@ -20,6 +20,7 @@
chdir: /etc/zuul-merger
become: true
become_user: root
when: merger_container_list.stdout_lines | length > 0
- name: Down Zuul Merger containers
shell:
cmd: docker-compose down