Mailman3: check docker-compose stderr not stdout
For the conditional check as to whether docker-compose up was a no-op, we look for a recognizable string in the output it generates. This information is emitted on the stderr descriptor, not stdout, so correct the match condition accordingly. Change-Id: I82015e615071458c95342eaea2e6a17aeae44c07
This commit is contained in:
parent
eec60a2cb9
commit
188ea92675
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
- name: mailman restart containers if running
|
- name: mailman restart containers if running
|
||||||
# Also makes sure the containers weren't just restarted by an image update
|
# Also makes sure the containers weren't just restarted by an image update
|
||||||
when: uwsgi_pids.rc == 0 and "is up-to-date" in mailman_dcup.stdout
|
when: uwsgi_pids.rc == 0 and "is up-to-date" in mailman_dcup.stderr
|
||||||
block:
|
block:
|
||||||
- name: down containers
|
- name: down containers
|
||||||
shell:
|
shell:
|
||||||
|
Loading…
Reference in New Issue
Block a user