Skip to content

Commit

Permalink
fix: Prevented gcloud from authenticating on the console when getting…
Browse files Browse the repository at this point in the history
… the gcloud project
  • Loading branch information
bouk committed Sep 27, 2021
1 parent 4940524 commit 9902503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/googleauth/credentials_loader.rb
Expand Up @@ -175,7 +175,7 @@ def warn_if_cloud_sdk_credentials client_id
def load_gcloud_project_id
gcloud = GCLOUD_WINDOWS_COMMAND if OS.windows?
gcloud = GCLOUD_POSIX_COMMAND unless OS.windows?
gcloud_json = IO.popen("#{gcloud} #{GCLOUD_CONFIG_COMMAND}", &:read)
gcloud_json = IO.popen("#{gcloud} #{GCLOUD_CONFIG_COMMAND}", in: :close, err: :close, &:read)
config = MultiJson.load gcloud_json
config["configuration"]["properties"]["core"]["project"]
rescue StandardError
Expand Down

0 comments on commit 9902503

Please sign in to comment.