Merge pull request #12875 from justinsb/gsutil_cleanup

tests gce: fix project arg on gsutil rm
This commit is contained in:
Kubernetes Prow Robot 2021-12-02 06:17:34 -08:00 committed by GitHub
commit 85bda5a7a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -80,10 +80,9 @@ func EnsureGCSBucket(bucketPath, projectID string) error {
func DeleteGCSBucket(bucketPath, projectID string) error { func DeleteGCSBucket(bucketPath, projectID string) error {
rmArgs := []string{ rmArgs := []string{
"gsutil", "rm", "-r", bucketPath, "gsutil",
} "-u", projectID,
if projectID != "" { "rm", "-r", bucketPath,
rmArgs = append(rmArgs, "-p", projectID)
} }
klog.Info(strings.Join(rmArgs, " ")) klog.Info(strings.Join(rmArgs, " "))