From b23f9b3b5d9fcb7641e3cefd93812c50bbecbc14 Mon Sep 17 00:00:00 2001 From: Toni de la Fuente Date: Wed, 13 Jan 2021 22:21:45 +0100 Subject: [PATCH] Fix changes made in check27 --- checks/check27 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/checks/check27 b/checks/check27 index b17b7838..fc1779bc 100644 --- a/checks/check27 +++ b/checks/check27 @@ -33,12 +33,11 @@ check27(){ trail_count=$((trail_count + 1)) KMSKEYID=$($AWSCLI cloudtrail describe-trails $PROFILE_OPT --region $TRAIL_REGION --query 'trailList[*].KmsKeyId' --output text --trail-name-list $trail) - if [[ "$KMSKEYID" == 'None' ]];then - textFail "Trail $trail in $regx has encryption disabled" - else + if [[ "$KMSKEYID" ]];then textPass "Trail $trail in $regx has encryption enabled" + else + textFail "Trail $trail in $regx has encryption disabled" fi - done fi done