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

start using gcp-metadata for metadata queries #210

Merged
merged 1 commit into from
Dec 23, 2016

Conversation

ofrobots
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 23, 2016
/**
* @private
*/
Debuglet.prototype.getProjectId_ = function(callback) {
var that = this;

// 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.

@@ -48,6 +48,7 @@ describe(__filename, function() {
});

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