From d0131a1bdb6414c5516c5c2a7e76fc195edc3cfd Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 4 Jun 2019 16:54:19 -0700 Subject: [PATCH] Remove version format validation (#808) Signed-off-by: Modular Magician --- google-beta/data_source_tpu_tensorflow_versions_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/google-beta/data_source_tpu_tensorflow_versions_test.go b/google-beta/data_source_tpu_tensorflow_versions_test.go index 176ec3e6b7..47af8481d7 100644 --- a/google-beta/data_source_tpu_tensorflow_versions_test.go +++ b/google-beta/data_source_tpu_tensorflow_versions_test.go @@ -8,7 +8,6 @@ import ( "github.com/hashicorp/terraform/helper/resource" "github.com/hashicorp/terraform/terraform" - "regexp" ) func TestAccTpuTensorflowVersions_basic(t *testing.T) { @@ -54,14 +53,10 @@ func testAccCheckGoogleTpuTensorflowVersions(n string) resource.TestCheckFunc { for i := 0; i < cnt; i++ { idx := fmt.Sprintf("versions.%d", i) - v, ok := rs.Primary.Attributes[idx] + _, ok := rs.Primary.Attributes[idx] if !ok { return fmt.Errorf("expected %q, version not found", idx) } - - if !regexp.MustCompile(`^([0-9]+\.)+[0-9]+$`).MatchString(v) { - return fmt.Errorf("unexpected version format for %q, value is %v", idx, v) - } } return nil }