Skip to content

Commit 7662c65

Browse files
author
Jon Wayne Parrott
committed
Fixing compute readme and typo
Change-Id: I89ab8fb9747235a861ae89409d572f15c3ac1135
1 parent 635e904 commit 7662c65

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

compute/README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ This section contains samples for [Google Compute Engine](https://cloud.google.c
55
## Running the samples
66

77
1. Your environment must be setup with [authentication
8-
information](https://developers.google.com/identity/protocols/application-default-credentials#howtheywork). *Note* that Cloud Monitoring does not currently work
9-
with `gcloud auth`. You will need to use a *service account* when running
10-
locally and set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable.
11-
12-
$ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
8+
information](https://developers.google.com/identity/protocols/application-default-credentials#howtheywork). If you're running on Compute Engine, this is already setup.
139

1410
2. Install dependencies from `requirements.txt`
1511

@@ -23,11 +19,6 @@ For more information on Compute Engine you can visit:
2319

2420
> https://cloud.google.com/compute
2521
26-
For more information on the Cloud Monitoring API Python library surface you
27-
can visit:
28-
29-
> https://developers.google.com/resources/api-libraries/documentation/compute/v1/python/latest/
30-
3122
For information on the Python Client Library visit:
3223

3324
> https://developers.google.com/api-client-library/python

compute/auth/access_token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_access_token():
3939
r = requests.get(url, headers=METADATA_HEADERS)
4040
r.raise_for_status()
4141

42-
# Extract the access token from the respose.
42+
# Extract the access token from the response.
4343
access_token = r.json()['access_token']
4444

4545
return access_token
@@ -51,7 +51,7 @@ def list_buckets(project_id, access_token):
5151
'project': project_id
5252
}
5353
headers = {
54-
'Authenication': 'Bearer {}'.format(access_token)
54+
'Authentication': 'Bearer {}'.format(access_token)
5555
}
5656

5757
r = requests.get(url, params=params, headers=headers)

0 commit comments

Comments
 (0)