Adjust method for trimming ansible output debug information

This patch adjusts the method introduced in
I98fb57a56c1b7ddd6558e265cf6e65b159a05123 to trim the debug information
from the ansible output.

This adjustment allows the output to come to the console immediately,
instead of piping to a file and doing the processing after the ansible
run is complete.

Change-Id: I515adcad34ef76b8ea47fe90bc6572fb3aec1d2c
Partial-bug: #1425482
This commit is contained in:
Jesse Pretorius 2015-03-12 11:26:07 +00:00
parent eec5548a9f
commit ed090eb109

View File

@ -82,9 +82,7 @@ if [ "${RUN_PLAYBOOKS}" == "yes" ]; then
print print
} }
" "
source $(dirname ${0})/run-playbooks.sh > ansible-logs.tmp bash $(dirname ${0})/run-playbooks.sh | awk "${strip_debug}"
awk "${strip_debug}" < ansible-logs.tmp
rm -f ansible-logs.tmp
fi fi
# Run the tempest tests if required # Run the tempest tests if required