diff --git a/checks/check_extra7111 b/checks/check_extra7111 index 41c6c44b..2abb5d51 100644 --- a/checks/check_extra7111 +++ b/checks/check_extra7111 @@ -25,7 +25,7 @@ extra7111(){ if [[ $LIST_SM_NB_INSTANCES ]];then for nb_instance in $LIST_SM_NB_INSTANCES; do SM_NB_DIRECTINET=$($AWSCLI $PROFILE_OPT --region $regx sagemaker describe-notebook-instance --notebook-instance-name $nb_instance --query 'DirectInternetAccess' --output text) - if [[ $SM_NB_DIRECTINET -eq "Disabled" ]]; then + if [[ "${SM_NB_DIRECTINET}" == "Enabled" ]]; then textFail "${regx}: Sagemaker Notebook instance $nb_instance has direct internet access enabled" "${regx}" else textPass "${regx}: Sagemaker Notebook instance $nb_instance has direct internet access disabled" "${regx}"