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.
This commit is contained in:
Subramani Ramanathan authored and GitHub committed 2018-02-13 21:27:04 +05:30
1 parent 1580c38a06
commit 6b759db0ae
1 file changed
+2 -1
+2 -1
View File
@@ -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#*:}