add region info to textFail,textPass output

This commit is contained in:
Mr. Secure
2019-10-22 08:12:00 -05:00
parent 23a7c7f393
commit 827b1fdb3b

View File

@@ -32,9 +32,9 @@ extra762(){
runtime=$(echo "$lambdafunction" | cut -d'%' -f2)
if echo "$lambdafunction" | grep -Eq $OBSOLETE ; then
# obselete runtime found
textFail "Obsolete ${runtime} runtime found in Lambda funtion ${fname}" "$regx"
textFail "$regx: Obsolete ${runtime} runtime found in Lambda funtion ${fname}" "$regx"
else
textPass "Supported ${runtime} runtime found in Lambda function ${fname}" "$regx"
textPass "$regx: Supported ${runtime} runtime found in Lambda function ${fname}" "$regx"
fi
done
else