From df6c323a644f778ca060b4b65da20711770dc0d1 Mon Sep 17 00:00:00 2001 From: gabrielsoltz Date: Thu, 6 Jun 2019 19:37:10 +0100 Subject: [PATCH] fix extra731 output --- checks/check_extra731 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checks/check_extra731 b/checks/check_extra731 index 18a04c81..5fa55444 100644 --- a/checks/check_extra731 +++ b/checks/check_extra731 @@ -27,13 +27,13 @@ extra731(){ PUBLIC_SNS_WCONDITION=$(echo $SNS_TO_CHECK|grep Condition) SHORT_TOPIC=$(echo $topic| cut -d: -f6) if [[ $PUBLIC_SNS_WCONDITION ]]; then - textInfo "$regx: SNS topic $SHORT_TOPIC has a Condition" "$regx" + textPass "$regx: SNS topic $SHORT_TOPIC has a Condition" "$regx" else PUBLIC_SNS=$(echo $SNS_TO_CHECK|grep \"Principal|grep \*) if [[ $PUBLIC_SNS ]]; then textFail "$regx: SNS topic $SHORT_TOPIC seems to be public (Principal: \"*\")" "$regx" else - textInfo "$regx: SNS topic $SHORT_TOPIC seems correct" "$regx" + textPass "$regx: SNS topic $SHORT_TOPIC seems correct" "$regx" fi fi done