diff --git a/checks/check_extra75 b/checks/check_extra75 index df480c87..6f39aa54 100644 --- a/checks/check_extra75 +++ b/checks/check_extra75 @@ -34,7 +34,8 @@ extra75(){ textInfo "$regx: Access Denied trying to describe security groups" "$regx" continue fi - if [[ $SECURITYGROUPS == "null" ]]; then + if [[ $(echo "$SECURITYGROUPS" | jq '."SecurityGroups" | length') -eq 0 ]]; then + textInfo "$regx: No Security Groups found in $regx" "$regx" continue fi SECURITYGROUP_NAMES=$(echo $SECURITYGROUPS | jq '.SecurityGroups|map({(.GroupId): (.GroupName)})|add')