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 {
|
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, " "))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue