Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit e102aef

Browse files
authored
fix: fix incorrect instructions and CLI (#1049)
Replace 'loging' with 'login' in tutorial and README instructions. Fix variable errors in CLI. Add missing 'create' command in docs.
1 parent cb38bb8 commit e102aef

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ project ID:
4949

5050
```bash
5151
git clone https://github.com/GoogleCloudPlatform/cloud-ops-sandbox
52-
gcloud auth application-default loging
52+
gcloud auth application-default login
5353
cloud-ops-sandbox/provisioning/sandboxctl create -p PROJECT_ID
5454
```
5555

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ instructions:
4646

4747
Or, by executing the following commands in your local environment:
4848

49-
```terminal
49+
```shell
5050
git clone https://github.com/GoogleCloudPlatform/cloud-ops-sandbox
51-
gcloud auth application-default loging
52-
cloud-ops-sandbox/provisioning/sandboxctl -p PROJECT_ID
51+
gcloud auth application-default login
52+
cloud-ops-sandbox/provisioning/sandboxctl create -p PROJECT_ID
5353
```
5454

5555
where `PROJECT_ID` identifies the Google Cloud project where you want to

provisioning/sandboxctl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ fatal_with_usage() {
211211
}
212212

213213
version_message() {
214-
echo "${VERSION}"
214+
echo "${SANDBOX_VERSION}"
215215
}
216216

217217
usage() {
@@ -416,7 +416,6 @@ local_iam_user() {
416416

417417
prepare_terraform_state() {
418418
TF_BUCKET_NAME="${PROJECT_ID}-cloud-ops-sandbox-tf-state"
419-
local URIS
420419
NAMES=$(gcloud storage buckets list "gs://${TF_BUCKET_NAME}*" --format="value(name)" --project "${PROJECT_ID}")
421420
if [[ -z "${NAMES}" ]]; then
422421
info "Creating storage bucket to host Cloud Ops Sandbox state..."
@@ -437,7 +436,6 @@ does_terraform_state_exist() {
437436
else
438437
STATE_OBJ_URI="gs://${TF_BUCKET_NAME}/${TERRAFORM_PREFIX}/default.tfstate"
439438
fi
440-
local URIS
441439
NAMES=$(gcloud storage objects list "${STATE_OBJ_URI}" --format="value(name)" --project "${PROJECT_ID}")
442440
if [[ -z "${NAMES}" ]]; then
443441
false

0 commit comments

Comments
 (0)