Skip to content

Commit 853a9ee

Browse files
committed
Add %s rnd to network and subnetwork
1 parent 7d45f5f commit 853a9ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google/resource_dataproc_cluster_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ resource "google_dataproc_cluster" "basic" {
677677
func testAccDataprocCluster_basicWithInternalIpOnlyTrue(rnd string) string {
678678
return fmt.Sprintf(`
679679
resource "google_compute_network" "dataproc_network" {
680-
name = "dataproc-internalip-network"
680+
name = "dataproc-internalip-network-%s"
681681
auto_create_subnetworks = false
682682
}
683683
@@ -686,7 +686,7 @@ resource "google_compute_network" "dataproc_network" {
686686
# deploying a Dataproc cluster with Internal IP Only enabled.
687687
#
688688
resource "google_compute_subnetwork" "dataproc_subnetwork" {
689-
name = "dataproc-internalip-subnetwork"
689+
name = "dataproc-internalip-subnetwork-%s"
690690
ip_cidr_range = "10.0.0.0/16"
691691
network = "${google_compute_network.dataproc_network.self_link}"
692692
region = "us-central1"
@@ -730,7 +730,7 @@ resource "google_dataproc_cluster" "basic" {
730730
}
731731
}
732732
}
733-
`, rnd)
733+
`, rnd, rnd, rnd)
734734
}
735735

736736
func testAccDataprocCluster_basicWithAutogenDeleteTrue(rnd string) string {

0 commit comments

Comments
 (0)