Description
Problem (steps to reproduce)
Run gcloud init. Instead of updating the default configuration, make a new configuration (in my case, I called it "kittenbot"). Use a different project than you have for the default configuration. Note, you can switch between configurations using a command like: gcloud config configurations activate kittenbot.
Now, try to run any google-cloud-python library, notice that the paths it hit use project from the default configuration, not the active configuration. https://github.com/GoogleCloudPlatform/google-cloud-python/blob/ec781b6e8afc0b27599ddc69848571e1abf412ff/core/google/cloud/_helpers.py#L64 I noticed this problem because my GETs were failing in the RuntimeConfig, but it would be a worse problem with something like Datastore, where data could get written to the wrong project.
See similar issue in google-cloud-java: googleapis/google-cloud-java#827
This was fixed with: googleapis/google-cloud-java#831
Expected behavior
The default project should use the active configuration, not the default configuration.
Activity
dhermes commentedon Oct 22, 2016
Ick! I think @jonparrott is putting this all in https://github.com/GoogleCloudPlatform/google-auth-library-python/
theacodes commentedon Oct 25, 2016
Move this over to google-auth, it's getting closer and closer to ready.
On Fri, Oct 21, 2016, 4:54 PM Tim Swast notifications@github.com wrote:
dhermes commentedon Oct 25, 2016
w00t!
theacodes commentedon Oct 25, 2016
Filed over at googleapis/google-auth-library-python#53
dhermes commentedon Aug 8, 2017
@jonparrott Is this
chore: bump versions for google-cloud-access-context-manager, google-…