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

start using gcp-metadata for metadata queries#210

Merged
ofrobots merged 1 commit intogoogleapis:masterfrom
ofrobots:gcp-metadata
Dec 23, 2016
Merged

start using gcp-metadata for metadata queries#210
ofrobots merged 1 commit intogoogleapis:masterfrom
ofrobots:gcp-metadata

Conversation

@ofrobots
Copy link
Copy Markdown
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 23, 2016

// We need to figure out whether we are running on GCP. We can use our ability
// to access the metadata service as a test for that.
// TODO: change this to getProjectId in the future.

This comment was marked as spam.

This comment was marked as spam.

return callback(null, project, onGCP);
});
metadata.project(
'numeric-project-id', function(err, response, metadataProject) {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

}
return callback(null, project, onGCP);
});
metadata.project(

This comment was marked as spam.

This comment was marked as spam.

});

it('should not start when projectId is not available', function(done) {
this.timeout(8000);

This comment was marked as spam.

This comment was marked as spam.

@ofrobots ofrobots merged commit e5d9eb9 into googleapis:master Dec 23, 2016
@ofrobots ofrobots deleted the gcp-metadata branch December 23, 2016 17:36
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