mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
Manual Changes
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user