diff --git a/checks/check_extra7103 b/checks/check_extra7103 index 62c7c293..18247bdf 100644 --- a/checks/check_extra7103 +++ b/checks/check_extra7103 @@ -25,7 +25,7 @@ extra7103(){ if [[ $LIST_SM_NB_INSTANCES ]];then for nb_instance in $LIST_SM_NB_INSTANCES; do SM_NB_ROOTACCESS=$($AWSCLI $PROFILE_OPT --region $regx sagemaker describe-notebook-instance --notebook-instance-name $nb_instance --query 'RootAccess' --output text) - if [[ $SM_NB_ROOTACCESS -eq "Enabled" ]]; then + if [[ "${SM_NB_ROOTACCESS}" == "Enabled" ]]; then textFail "${regx}: Sagemaker Notebook instance $nb_instance has root access enabled" "${regx}" else textPass "${regx}: Sagemaker Notebook instance $nb_instance has root access disabled" "${regx}"