diff --git a/main.go b/main.go index bbaf83e..31e39df 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/hashicorp/terraform-plugin-sdk/plugin" + "github.com/hashicorp/terraform-plugin-sdk/v2/plugin" "github.com/utilitywarehouse/terraform-provider-megaport/megaport" ) diff --git a/megaport/api/client_test.go b/megaport/api/client_test.go index 49e51d5..3dfdc09 100644 --- a/megaport/api/client_test.go +++ b/megaport/api/client_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/google/uuid" - "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" ) func testClientServer(handler func(w http.ResponseWriter, r *http.Request)) (*Client, *httptest.Server) { diff --git a/megaport/api/vxc_test.go b/megaport/api/vxc_test.go index fdf95df..ad2fa5d 100644 --- a/megaport/api/vxc_test.go +++ b/megaport/api/vxc_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/google/uuid" - "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" ) func TestPrivateVxcCreateInput_toPayload(t *testing.T) { diff --git a/megaport/common.go b/megaport/common.go index c415b08..19be7eb 100644 --- a/megaport/common.go +++ b/megaport/common.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/common_test.go b/megaport/common_test.go index 4273c87..d6ba16a 100644 --- a/megaport/common_test.go +++ b/megaport/common_test.go @@ -6,9 +6,9 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/terraform" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/data_source_megaport_location.go b/megaport/data_source_megaport_location.go index 9c9d165..a3b446c 100644 --- a/megaport/data_source_megaport_location.go +++ b/megaport/data_source_megaport_location.go @@ -6,8 +6,8 @@ import ( "regexp" "strconv" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - "github.com/hashicorp/terraform-plugin-sdk/helper/validation" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/data_source_megaport_partner_port.go b/megaport/data_source_megaport_partner_port.go index b611b6d..3a82dce 100644 --- a/megaport/data_source_megaport_partner_port.go +++ b/megaport/data_source_megaport_partner_port.go @@ -7,8 +7,8 @@ import ( "strings" "github.com/hashicorp/go-uuid" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - "github.com/hashicorp/terraform-plugin-sdk/helper/validation" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/data_source_megaport_port.go b/megaport/data_source_megaport_port.go index e3895a0..2e3ec88 100644 --- a/megaport/data_source_megaport_port.go +++ b/megaport/data_source_megaport_port.go @@ -5,8 +5,8 @@ import ( "log" "regexp" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - "github.com/hashicorp/terraform-plugin-sdk/helper/validation" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/megaport_sweeper_test.go b/megaport/megaport_sweeper_test.go index 784fe60..7bd2100 100644 --- a/megaport/megaport_sweeper_test.go +++ b/megaport/megaport_sweeper_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/provider.go b/megaport/provider.go index 3e47527..9475136 100644 --- a/megaport/provider.go +++ b/megaport/provider.go @@ -3,10 +3,10 @@ package megaport import ( "log" - "github.com/hashicorp/terraform-plugin-sdk/helper/mutexkv" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - "github.com/hashicorp/terraform-plugin-sdk/helper/validation" - "github.com/hashicorp/terraform-plugin-sdk/terraform" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/mutexkv" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/provider_test.go b/megaport/provider_test.go index 9c6b2a8..5dde032 100644 --- a/megaport/provider_test.go +++ b/megaport/provider_test.go @@ -4,8 +4,8 @@ import ( "os" "testing" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - "github.com/hashicorp/terraform-plugin-sdk/terraform" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_aws_vxc.go b/megaport/resource_megaport_aws_vxc.go index 585d0ee..4620d44 100644 --- a/megaport/resource_megaport_aws_vxc.go +++ b/megaport/resource_megaport_aws_vxc.go @@ -6,9 +6,9 @@ import ( "strings" "time" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - "github.com/hashicorp/terraform-plugin-sdk/helper/validation" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_aws_vxc_test.go b/megaport/resource_megaport_aws_vxc_test.go index 342c1c6..29c892b 100644 --- a/megaport/resource_megaport_aws_vxc_test.go +++ b/megaport/resource_megaport_aws_vxc_test.go @@ -10,9 +10,9 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/terraform" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/terraform" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_gcp_vxc.go b/megaport/resource_megaport_gcp_vxc.go index fa1467a..83da4e7 100644 --- a/megaport/resource_megaport_gcp_vxc.go +++ b/megaport/resource_megaport_gcp_vxc.go @@ -5,8 +5,8 @@ import ( "log" "time" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_gcp_vxc_test.go b/megaport/resource_megaport_gcp_vxc_test.go index 8324878..26ef72c 100644 --- a/megaport/resource_megaport_gcp_vxc_test.go +++ b/megaport/resource_megaport_gcp_vxc_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/hashicorp/go-uuid" - "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_mcr.go b/megaport/resource_megaport_mcr.go index 7c90f4e..3aa1f32 100644 --- a/megaport/resource_megaport_mcr.go +++ b/megaport/resource_megaport_mcr.go @@ -4,8 +4,8 @@ import ( "log" "time" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_mcr_test.go b/megaport/resource_megaport_mcr_test.go index bbf059d..c9a9814 100644 --- a/megaport/resource_megaport_mcr_test.go +++ b/megaport/resource_megaport_mcr_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_port.go b/megaport/resource_megaport_port.go index dfbd5ae..de91e73 100644 --- a/megaport/resource_megaport_port.go +++ b/megaport/resource_megaport_port.go @@ -4,9 +4,9 @@ import ( "log" "time" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" - "github.com/hashicorp/terraform-plugin-sdk/helper/validation" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_port_test.go b/megaport/resource_megaport_port_test.go index 0d61ff7..349946d 100644 --- a/megaport/resource_megaport_port_test.go +++ b/megaport/resource_megaport_port_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_private_vxc.go b/megaport/resource_megaport_private_vxc.go index 062b44d..8d13eec 100644 --- a/megaport/resource_megaport_private_vxc.go +++ b/megaport/resource_megaport_private_vxc.go @@ -4,8 +4,8 @@ import ( "log" "time" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" - "github.com/hashicorp/terraform-plugin-sdk/helper/schema" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" ) diff --git a/megaport/resource_megaport_private_vxc_test.go b/megaport/resource_megaport_private_vxc_test.go index 98f6a35..6e27007 100644 --- a/megaport/resource_megaport_private_vxc_test.go +++ b/megaport/resource_megaport_private_vxc_test.go @@ -4,8 +4,8 @@ import ( "strconv" "testing" - "github.com/hashicorp/terraform-plugin-sdk/helper/acctest" - "github.com/hashicorp/terraform-plugin-sdk/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/utilitywarehouse/terraform-provider-megaport/megaport/api" )