Skip to content

set_default_project living inside each service module is confusing #838

@jgeewax

Description

@jgeewax

Looks like inside each service module (let's say datastore and pubsub) we import _helpers.set_default_project.

If that's the case, I'd expect the following code snippet to have different projects set for the different services:

from gcloud import datastore, pubsub
datastore.set_default_project('datastore-project')
pubsub.set_default_project('pubsub-project')

assert 'datastore-project' == datastore.get_default_project()
assert 'pubsub-project' == pubsub.get_default_project()

If that's not the case, we need to figure out some other way of doing this... maybe moving the helper method into the top level as gcloud.set_default_project()...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions