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 997653b commit 24e8a61Copy full SHA for 24e8a61
hardware/hardware.sh
@@ -138,7 +138,7 @@ if [[ "$AWS_HTTP_CODE" == "200" ]]; then
138
exit 0
139
fi
140
141
-GCP_HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 1 -H "Metadata-Flavor: Google" 'http://metadata.google.internal/computeMetadata/v1/instance/')
+GCP_HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 1 -H "Metadata-Flavor: Google" 'http://metadata.google.internal/computeMetadata/v1/')
142
if [[ "$GCP_HTTP_CODE" == "200" ]]; then
143
GCP_INSTANCE_TYPE=$(curl -s --connect-timeout 1 -H "Metadata-Flavor: Google" 'http://metadata.google.internal/computeMetadata/v1/instance/machine-type' | awk -F/ '{print $NF}')
144
echo "$GCP_INSTANCE_TYPE" > instance.txt
0 commit comments