Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Fixing broken token acquire endpoint on GCE. #411

Merged
merged 1 commit into from
Feb 19, 2016

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Feb 17, 2016

I wanted to get this out there before writing / running tests, so there may be a follow on commit.

See #387 and googleapis/google-cloud-python#1484 for context.

/cc @nathanielmanistaatgoogle @jonparrott @jgeewax @tseaver @Galabar001

@@ -58,6 +58,9 @@ def __init__(self, scope, **kwargs):
scope: string or iterable of strings, scope(s) of the credentials
being requested.
"""
# if scope:
# raise ValueError('GCE will not respect your scopes so what '
# 'is the point?')
self.scope = util.scopes_to_string(scope)

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2016

@nathanielmanistaatgoogle PTAL. This is a serious regression and we should deal with it quickly.

@@ -58,6 +58,9 @@ def __init__(self, scope, **kwargs):
scope: string or iterable of strings, scope(s) of the credentials
being requested.
"""
# if scope:

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@nathanielmanistaatgoogle
Copy link
Contributor

Thank you for emphasizing the importance of this; I'm happy to be around to respond to it for the next several hours.

@nathanielmanistaatgoogle
Copy link
Contributor

Please squash commits.

@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2016

Will squash commits post review. Any issues other than the fake 4th commit?

@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2016

@nathanielmanistaatgoogle PTAL

@@ -51,13 +59,17 @@ class AppAssertionCredentials(AssertionCredentials):
"""

@util.positional(2)
def __init__(self, scope, **kwargs):
def __init__(self, scope='', **kwargs):

This comment was marked as spam.

This comment was marked as spam.

@nathanielmanistaatgoogle
Copy link
Contributor

The commit log message of 23b998a is weird for the way it contains a verb tense problem ("in the process also [...] warning a user") and the hash, author, and date of an earlier draft commit.

@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2016

@nathanielmanistaatgoogle Fixed the commit message

@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2016

@nathanielmanistaatgoogle I'm going to break this in two. Will ping you once updated.

@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2016

@nathanielmanistaatgoogle PTAL. Sent out #419 for the contentious pieces.

@nathanielmanistaatgoogle
Copy link
Contributor

Looks good; merge when you like.

@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2016

@nathanielmanistaatgoogle Do you want to cut a 2.0.0b or 2.0.1 release with this fix for the regression? Should we wait until #419 to cut a release?

dhermes added a commit that referenced this pull request Feb 19, 2016
Fixing broken token acquire endpoint on GCE.
@dhermes dhermes merged commit 0c79960 into googleapis:master Feb 19, 2016
@dhermes dhermes deleted the fix-gce-acquire branch February 19, 2016 22:31
@theacodes
Copy link
Contributor

Please cut a 2.0.0b ASAP, as this is breaking a lot of stuff. @nathanielmanistaatgoogle we need to cut a new release of google-api-python-client, at least one to pin the oauth2client dependency because it's currently very broken. This is bad. :(

@dhermes
Copy link
Contributor Author

dhermes commented Feb 19, 2016

Sorry, just double checked PEP 440 and I think the correct version would be 2.0.0-post1. Can someone confirm? (Going to get working on the release PR right now.)

@theacodes
Copy link
Contributor

Confirmed, it should be -post1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants