Adding GOOGLE_APPLICATION_CREDENTIALS env var (#12389)

* Adding GOOGLE_APPLICATION_CREDENTIALS env var
* Updating tests
This commit is contained in:
John Westcott IV
2022-07-12 08:51:02 -04:00
committed by GitHub
parent 6279295541
commit 37ff9913d3
3 changed files with 10 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ def gce(cred, env, private_data_dir):
container_path = to_container_path(path, private_data_dir)
env['GCE_CREDENTIALS_FILE_PATH'] = container_path
env['GCP_SERVICE_ACCOUNT_FILE'] = container_path
env['GOOGLE_APPLICATION_CREDENTIALS'] = container_path
# Handle env variables for new module types.
# This includes gcp_compute inventory plugin and