mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
inventory_docker_swarm test - Remove exit code from trap (#391)
Setting the exit code in a trap overrides the exit code that caused the trap to be called. This means if the test failed and called the trap, the test will exit with 0 rather than the failure exit code.
This commit is contained in:
parent
651065bc03
commit
f585aa065a
1 changed files with 0 additions and 1 deletions
|
@ -8,7 +8,6 @@ cleanup() {
|
||||||
echo "Cleanup"
|
echo "Cleanup"
|
||||||
ansible-playbook playbooks/swarm_cleanup.yml
|
ansible-playbook playbooks/swarm_cleanup.yml
|
||||||
echo "Done"
|
echo "Done"
|
||||||
exit 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
trap cleanup INT TERM EXIT
|
trap cleanup INT TERM EXIT
|
||||||
|
|
Loading…
Reference in a new issue