Skip to content

Update the location of config file #328

Description

@ajkannan

The gcloud SDK moved the location of its config file from ~/.config/gcloud/properties to ~/.config/gcloud/configurations/config_default. As a result, the file we read to get the default project ID in gcloud-java-core may be wrong, depending on whether the user updated their version of the gcloud SDK CLI.

We should first check if a config file exists in the new location. If so, we take that projectID. If it doesn't exist, we will try to read the old file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions