commit | 5b03ba117b28770de934aae9cf97ff4d12054611 | [log] [tgz] |
---|---|---|
author | Jon Wayne Parrott <jonwayne@google.com> | Mon Oct 24 13:51:26 2016 -0700 |
committer | Jon Wayne Parrott <jonwayne@google.com> | Mon Oct 24 14:07:49 2016 -0700 |
tree | 7d768a80c42745e527219446c910775ccb6b7e89 | |
parent | 2148fdef41760734473b575ce7ef3aff3809f1a8 [diff] [blame] |
Add _metadata.get_project_id.
diff --git a/google/auth/_default.py b/google/auth/_default.py index 74b96b3..356780b 100644 --- a/google/auth/_default.py +++ b/google/auth/_default.py
@@ -172,7 +172,7 @@ if _metadata.ping(request=request): # Get the project ID. try: - project_id = _metadata.get(request, 'project/project-id') + project_id = _metadata.get_project_id(request=request) except exceptions.TransportError: _LOGGER.warning( 'No project ID could be determined from the Compute Engine '