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

Simplify metadata#308

Merged
ofrobots merged 2 commits intogoogleapis:masterfrom
ofrobots:metadata
Jul 12, 2017
Merged

Simplify metadata#308
ofrobots merged 2 commits intogoogleapis:masterfrom
ofrobots:metadata

Conversation

@ofrobots
Copy link
Copy Markdown
Contributor

The first commit adds a simpler, more testable version of code to lookup metadata. The second commit uses this. Review each commits separately.

Note that we no longer query the metadata service if projectId is locally available.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 11, 2017
try {
await lookup('metadata.google.internal.');
return true;
} catch (err) {

This comment was marked as spam.

This comment was marked as spam.

@ofrobots ofrobots merged commit 8ddb5ec into googleapis:master Jul 12, 2017
@ofrobots ofrobots deleted the metadata branch July 12, 2017 17:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants