Skip to content

Example for GCE in authorization documentation seems wrong #712

@jacobsa

Description

@jacobsa

In the section called "On Google Compute Engine", this page says that authorization is handled for me with no configuration. But the example directly below shows using an explicit JSON key file:

var config = {
  projectId: 'grape-spaceship-123',
  keyFilename: '/path/to/keyfile.json'
};

var gcloud = require('gcloud')(config);

In fact, this is identical to the example used in the "Elsewhere" section.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions