Skip to content

Commit

Permalink
Update _utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IronPan committed Dec 5, 2018
1 parent f688b9c commit db27721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/dataproc/xgboost/common/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def copy_resources_to_gcs(file_paths, gcs_path):
dest_files = []
for file_name in file_paths:
dest_file = os.path.join(gcs_path, tmpdir, os.path.basename(file_name))
subprocess.call(['gcloud', 'auth', 'activate-service-account', '--key-file="${GOOGLE_APPLICATION_CREDENTIALS}"'])
subprocess.call(['gcloud', 'auth', 'activate-service-account', '--key-file', os.environ['GOOGLE_APPLICATION_CREDENTIALS']])
subprocess.call(['gsutil', 'cp', file_name, dest_file])
dest_files.append(dest_file)

Expand Down

0 comments on commit db27721

Please sign in to comment.