Skip to content

Commit

Permalink
Merge pull request #28 from DNSMadeEasy/dns_record
Browse files Browse the repository at this point in the history
Fixed the issue with empty names
  • Loading branch information
nkatarmal-crest authored Mar 10, 2021
2 parents 3904120 + 89644ad commit 52e3870
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
7 changes: 4 additions & 3 deletions dme/resource_dme_dns_records.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,10 @@ func resourceManagedDNSRecordActionsCreate(d *schema.ResourceData, m interface{}

recordAttr := models.ManagedDNSRecordActions{}

if name, ok := d.GetOk("name"); ok {
recordAttr.Name = name.(string)
}
recordAttr.Name = d.Get("name").(string)
// if name, ok := d.GetOk("name"); ok {
// recordAttr.Name = name.(string)
// }

if value, ok := d.GetOk("value"); ok {
recordAttr.Value = value.(string)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/terraform-providers/terraform-provider-dme
go 1.13

require (
github.com/DNSMadeEasy/dme-go-client v1.0.0
github.com/DNSMadeEasy/dme-go-client v1.0.1
github.com/DNSMadeEasy/terraform-provider-dme v0.0.0-20200514070237-a1077782eb45 // indirect
github.com/hashicorp/terraform-plugin-sdk v1.14.0
)
8 changes: 8 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/DNSMadeEasy/dme-go-client v1.0.0 h1:/KrLoPB6sz6PmwwakGY2G0ZLvwn06T01z7Af/CJfg7U=
github.com/DNSMadeEasy/dme-go-client v1.0.0/go.mod h1:b/ChCh5HEYEdLo7z5eZALjsY6GG2m+BmI2ObROqBtYg=
github.com/DNSMadeEasy/dme-go-client v1.0.1-0.20210310043709-85f8d68bbec2 h1:M7zzGHtCTL4iI673KxEnFz633pDnfjgtptrMz7JhWT0=
github.com/DNSMadeEasy/dme-go-client v1.0.1-0.20210310043709-85f8d68bbec2/go.mod h1:b/ChCh5HEYEdLo7z5eZALjsY6GG2m+BmI2ObROqBtYg=
github.com/DNSMadeEasy/dme-go-client v1.0.1-0.20210310060812-f19b470a2d89 h1:HHbijde+4BVIhLEtwusXWEdXm9O+Pay5z2diWjKCXUw=
github.com/DNSMadeEasy/dme-go-client v1.0.1-0.20210310060812-f19b470a2d89/go.mod h1:b/ChCh5HEYEdLo7z5eZALjsY6GG2m+BmI2ObROqBtYg=
github.com/DNSMadeEasy/dme-go-client v1.0.1-0.20210310061344-33a7abeeadd3 h1:fC6Ya1INddPVqgiXsWqIYqWjccQrGeyj4gNrvlosYJg=
github.com/DNSMadeEasy/dme-go-client v1.0.1-0.20210310061344-33a7abeeadd3/go.mod h1:b/ChCh5HEYEdLo7z5eZALjsY6GG2m+BmI2ObROqBtYg=
github.com/DNSMadeEasy/dme-go-client v1.0.1 h1:xyHq4yNzV998T0eIjPrL4GCn9BbotCNQjEDggkcHVwU=
github.com/DNSMadeEasy/dme-go-client v1.0.1/go.mod h1:b/ChCh5HEYEdLo7z5eZALjsY6GG2m+BmI2ObROqBtYg=
github.com/DNSMadeEasy/terraform-provider-dme v0.0.0-20200514070237-a1077782eb45 h1:GjJq5blkPuyaEHld5xNe57MrL2/uP5eatU824JKH0M0=
github.com/DNSMadeEasy/terraform-provider-dme v0.0.0-20200514070237-a1077782eb45/go.mod h1:AMzczin20j0e8pGZwLNoLorxvOgVpKc0QsBt8jB8zq4=
github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cloud.google.com/go/internal/optional
cloud.google.com/go/internal/trace
cloud.google.com/go/internal/version
cloud.google.com/go/storage
# github.com/DNSMadeEasy/dme-go-client v1.0.0
# github.com/DNSMadeEasy/dme-go-client v1.0.1
github.com/DNSMadeEasy/dme-go-client/client
github.com/DNSMadeEasy/dme-go-client/container
github.com/DNSMadeEasy/dme-go-client/models
Expand Down

0 comments on commit 52e3870

Please sign in to comment.