Skip to content

Commit

Permalink
Merge pull request #2 from Darigazz/revert-1-https/github.com/cloud-c…
Browse files Browse the repository at this point in the history
…ustodian/issues/7155

Revert "Update client.py"
  • Loading branch information
Darigazz committed Oct 16, 2023
2 parents dd0c20d + 50e909f commit e6b7b72
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/c7n_gcp/c7n_gcp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,9 @@ def __init__(self,
if not credentials:
# Only share the http object when using the default credentials.
self._use_cached_http = True
"""This line forces that the service account associated has to have access to the billing account which may not always be true causing an error.
Changing this to the standard google auth without the quota_project_id solves the issue.
default_credentials, _ = google.auth.default(
quota_project_id=project_id or get_default_project()
)"""
default_credentials, _ = google.auth.default()
)
impersonated_credentials = None
if impersonate_service or GOOGLE_IMPERSONATE_SERVICE_ACCOUNT:
impersonate_target = impersonate_service or GOOGLE_IMPERSONATE_SERVICE_ACCOUNT
Expand Down

0 comments on commit e6b7b72

Please sign in to comment.