From 565ef3fb3bea6f341a6b6e588ecc94b2d80c88c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Fri, 7 Jul 2017 13:03:10 +0200 Subject: [PATCH] redirect errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/7_docker_swarm_configuration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/7_docker_swarm_configuration.sh b/tests/7_docker_swarm_configuration.sh index c5f401b..5b240aa 100644 --- a/tests/7_docker_swarm_configuration.sh +++ b/tests/7_docker_swarm_configuration.sh @@ -88,7 +88,7 @@ fi # 7.8 check_7_8="7.8 - Ensure node certificates are rotated as appropriate" if docker info 2>/dev/null | grep -e "Swarm:\s*active\s*" >/dev/null 2>&1; then - if docker info | grep "Expiry Duration: 2 days"; then + if docker info 2>/dev/null | grep "Expiry Duration: 2 days"; then pass "$check_7_8" else info "$check_7_8"