From e1adab029d64bf0470156fc7b97504e5431c6638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Fri, 13 Oct 2017 10:28:42 +0200 Subject: [PATCH] check 6.x json log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/6_docker_security_operations.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/6_docker_security_operations.sh b/tests/6_docker_security_operations.sh index adc2c8e..52979e7 100644 --- a/tests/6_docker_security_operations.sh +++ b/tests/6_docker_security_operations.sh @@ -19,6 +19,7 @@ done if [ "$active_images" -lt "$((images / 2))" ]; then info " * Only $active_images out of $images are in use" + logjson "6.1" "INFO: $active_images" fi # 6.2 @@ -29,7 +30,9 @@ diff="$((total_containers - running_containers))" if [ "$diff" -gt 25 ]; then info "$check_6_2" info " * There are currently a total of $total_containers containers, with only $running_containers of them currently running" + logjson "6.2" "INFO: $running_containers" else info "$check_6_2" info " * There are currently a total of $total_containers containers, with $running_containers of them currently running" + logjson "6.2" "INFO: $running_containers" fi