-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use "gcloud config config-helper" to read the project ID from the Google Cloud SDK #147
Conversation
google/auth/_cloud_sdk.py
Outdated
|
||
try: | ||
output = subprocess.check_output([ | ||
'gcloud', 'config', 'config-helper', '--format', 'json']) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
google/auth/_cloud_sdk.py
Outdated
try: | ||
output = subprocess.check_output([ | ||
'gcloud', 'config', 'config-helper', '--format', 'json']) | ||
except (subprocess.CalledProcessError, OSError, IOError): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
try: | ||
return configuration['configuration']['properties']['core']['project'] | ||
except KeyError: |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
"access_token": "don't use me", | ||
"token_expiry": "2017-03-23T23:09:49Z" | ||
}, | ||
"sentinels": { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Trying to debug the system tests, I figured it out. Fix incoming. |
@dhermes this should be ready for final review. |
Resolves #146