Manual Changes

This commit is contained in:
bhandarivijay
2025-12-09 16:19:31 +00:00
parent fd8bb1655d
commit a7a7bda0f9
@@ -231,8 +231,12 @@
" BUCKET_NAME = \"/\".join(BUCKET_URI.split(\"/\")[:3])\n",
" ! gcloud storage buckets create --location={REGION} {BUCKET_URI}\n", "else:\n",
" assert BUCKET_URI.startswith(\"gs://\"), \"BUCKET_URI must start with `gs://`.\"\n",
<<<<<<< HEAD
" shell_output = ! gcloud storage buckets describe {BUCKET_NAME} | grep \"^location:\" | sed \"s/location: //\"\n",
" bucket_region = shell_output[0].strip().lower()\n",
=======
" shell_output = ! gcloud storage ls --full --buckets {BUCKET_NAME} | grep \"Location constraint:\" | sed \"s/Location constraint://\"\n", " bucket_region = shell_output[0].strip().lower()\n",
>>>>>>> parent of 5d897fd6 (Manual Changes)
" if bucket_region != REGION:\n",
" raise ValueError(\n",
" \"Bucket region %s is different from notebook region %s\"\n",