mirror of https://github.com/kubernetes/kops.git
Merge pull request #12875 from justinsb/gsutil_cleanup
tests gce: fix project arg on gsutil rm
This commit is contained in:
commit
85bda5a7a8
|
|
@ -80,10 +80,9 @@ func EnsureGCSBucket(bucketPath, projectID string) error {
|
|||
|
||||
func DeleteGCSBucket(bucketPath, projectID string) error {
|
||||
rmArgs := []string{
|
||||
"gsutil", "rm", "-r", bucketPath,
|
||||
}
|
||||
if projectID != "" {
|
||||
rmArgs = append(rmArgs, "-p", projectID)
|
||||
"gsutil",
|
||||
"-u", projectID,
|
||||
"rm", "-r", bucketPath,
|
||||
}
|
||||
|
||||
klog.Info(strings.Join(rmArgs, " "))
|
||||
|
|
|
|||
Loading…
Reference in New Issue