From 6b759db0ae9580a1a84f4143cc1b8811f463821d Mon Sep 17 00:00:00 2001 From: Subramani Ramanathan Date: Tue, 13 Feb 2018 21:27:04 +0530 Subject: [PATCH] Fix printing texts when both Ok and Warn are present in 'check31' We may have groups in both Ok and Warn; so we have to go through both CHECK31OK and CHECK31WARN one by one. --- prowler | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prowler b/prowler index a1df8214..75c3c8f5 100755 --- a/prowler +++ b/prowler @@ -1192,7 +1192,8 @@ check31(){ group=${group%:*} textOK "CloudWatch group $group found with metric filter $metric and alarms set for Unauthorized Operation and Access Denied" done - else + fi + if [[ $CHECK31WARN ]]; then for group in $CHECK31WARN; do case $group in *:*) metric=${group#*:}