We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07fe09a commit 728d0fdCopy full SHA for 728d0fd
sagemaker_ssh_helper/sm-local-start-ssh
@@ -43,7 +43,7 @@ fi
43
INSTANCE_ID=$1
44
shift
45
46
-INSTANCE_ID=$(echo "$INSTANCE_ID" | tr '\n' ' ' | grep -o 'mi-.*$' | tr -d ' ')
+INSTANCE_ID=$(echo "$INSTANCE_ID" | tr '\n' ' ' | tr -d ' ' | grep -oe 'mi-[0-9a-f]*$')
47
48
if [ -z "${INSTANCE_ID}" ]; then
49
echo "INSTANCE_ID is not provided or incorrect (should be in the form mi-1234567890abcdef0)"
0 commit comments