Skip to content

Commit

Permalink
use default network for tpu full test (hashicorp#893)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and danawillow committed Jun 26, 2019
1 parent 54711b2 commit 8fde3ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions google-beta/resource_tpu_node_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ func TestAccTpuNode_tpuNodeFullExample(t *testing.T) {

func testAccTpuNode_tpuNodeFullExample(context map[string]interface{}) string {
return Nprintf(`
resource "google_compute_network" "tpu_network" {
name = "test-tpu-network-%{random_suffix}"
auto_create_subnetworks = false
}
data "google_tpu_tensorflow_versions" "available" { }
resource "google_tpu_node" "tpu" {
Expand All @@ -108,7 +103,7 @@ resource "google_tpu_node" "tpu" {
tensorflow_version = "${data.google_tpu_tensorflow_versions.available.versions[0]}"
description = "Terraform Google Provider test TPU"
network = "${google_compute_network.tpu_network.name}"
network = "default"
labels = {
foo = "bar"
Expand Down
7 changes: 1 addition & 6 deletions website/docs/r/tpu_node.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ resource "google_tpu_node" "tpu" {


```hcl
resource "google_compute_network" "tpu_network" {
name = "test-tpu-network"
auto_create_subnetworks = false
}
data "google_tpu_tensorflow_versions" "available" { }
resource "google_tpu_node" "tpu" {
Expand All @@ -76,7 +71,7 @@ resource "google_tpu_node" "tpu" {
tensorflow_version = "${data.google_tpu_tensorflow_versions.available.versions[0]}"
description = "Terraform Google Provider test TPU"
network = "${google_compute_network.tpu_network.name}"
network = "default"
labels = {
foo = "bar"
Expand Down

0 comments on commit 8fde3ed

Please sign in to comment.