Merge pull request #46635 from krzyzacy/copy-files

Automatic merge from submit-queue

Switch gcloud compute copy-files to scp

gcloud is deprecating `gcloud compute copy-files` and switching to `gcloud compute scp`. Make the change before things start to break.

https://cloud.google.com/sdk/gcloud/reference/compute/copy-files

Warnings we get: `W0529 10:28:59.097] WARNING: `gcloud compute copy-files` is deprecated.  Please use `gcloud compute scp` instead.  Note that `gcloud compute scp` does not have recursive copy on by default.  To turn on recursion, use the `--recurse` flag.`

/cc @jlowdermilk
This commit is contained in:
Kubernetes Submit Queue
2017-05-30 19:35:50 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ function execute-cmd-on-master-with-retries() {
}
function copy-files() {
run-gcloud-compute-with-retries copy-files --zone="${ZONE}" --project="${PROJECT}" $@
run-gcloud-compute-with-retries scp --recurse --zone="${ZONE}" --project="${PROJECT}" $@
}
function delete-master-instance-and-resources {