Skip to content

Commit f14b978

Browse files
committed
Migrating provider to terraform plugin SDK.
This migrates the provider to the terraform plugin SDK using the automated tool. Tests pass and provider builds. There were no issues with the automated tool.
1 parent f3d1495 commit f14b978

File tree

954 files changed

+34291
-38990
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

954 files changed

+34291
-38990
lines changed

go.mod

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ module github.com/terraform-providers/terraform-provider-powerdns
33
go 1.12
44

55
require (
6-
github.com/hashicorp/go-cleanhttp v0.5.0
7-
github.com/hashicorp/terraform v0.12.3
8-
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6 // indirect
6+
github.com/hashicorp/go-cleanhttp v0.5.1
7+
github.com/hashicorp/terraform-plugin-sdk v1.1.0
98
github.com/stretchr/testify v1.3.0
10-
golang.org/x/arch v0.0.0-20190312162104-788fe5ffcd8c // indirect
119
)

go.sum

+127-300
Large diffs are not rendered by default.

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/hashicorp/terraform/plugin"
4+
"github.com/hashicorp/terraform-plugin-sdk/plugin"
55
"github.com/terraform-providers/terraform-provider-powerdns/powerdns"
66
)
77

powerdns/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"log"
88

9-
"github.com/hashicorp/terraform/helper/pathorcontents"
9+
"github.com/hashicorp/terraform-plugin-sdk/helper/pathorcontents"
1010
)
1111

1212
// Config describes de configuration interface of this provider

powerdns/provider.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package powerdns
22

33
import (
4-
"github.com/hashicorp/terraform/helper/schema"
5-
"github.com/hashicorp/terraform/terraform"
4+
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
5+
"github.com/hashicorp/terraform-plugin-sdk/terraform"
66
)
77

88
// Provider returns a schema.Provider for PowerDNS.

powerdns/provider_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/hashicorp/terraform/helper/schema"
8-
"github.com/hashicorp/terraform/terraform"
7+
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
8+
"github.com/hashicorp/terraform-plugin-sdk/terraform"
99
)
1010

1111
var testAccProviders map[string]terraform.ResourceProvider

powerdns/resource_powerdns_record.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"log"
77
"strings"
88

9-
"github.com/hashicorp/terraform/helper/schema"
9+
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
1010
)
1111

1212
func resourcePDNSRecord() *schema.Resource {

powerdns/resource_powerdns_record_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"regexp"
66
"testing"
77

8-
"github.com/hashicorp/terraform/helper/resource"
9-
"github.com/hashicorp/terraform/terraform"
8+
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
9+
"github.com/hashicorp/terraform-plugin-sdk/terraform"
1010
)
1111

1212
func TestAccPDNSRecord_Empty(t *testing.T) {

powerdns/resource_powerdns_zone.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"log"
66

7-
"github.com/hashicorp/terraform/helper/schema"
7+
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
88
)
99

1010
func resourcePDNSZone() *schema.Resource {

powerdns/resource_powerdns_zone_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/hashicorp/terraform/helper/resource"
8-
"github.com/hashicorp/terraform/terraform"
7+
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
8+
"github.com/hashicorp/terraform-plugin-sdk/terraform"
99
)
1010

1111
func TestAccPDNSZoneNative(t *testing.T) {

vendor/cloud.google.com/go/AUTHORS

-15
This file was deleted.

vendor/cloud.google.com/go/CONTRIBUTORS

-40
This file was deleted.

vendor/cloud.google.com/go/compute/metadata/metadata.go

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/cloud.google.com/go/internal/trace/trace.go

+27-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/cloud.google.com/go/internal/version/update_version.sh

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/cloud.google.com/go/internal/version/version.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/cloud.google.com/go/storage/README.md

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/cloud.google.com/go/storage/bucket.go

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)