Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EICM-5158 - fix dns-records-create #170

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions edgecenter/resource_edgecenter_dns_zone_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func resourceDNSZoneRecord() *schema.Resource {
},
},
DNSZoneRecordSchemaFilter: {
Type: schema.TypeSet,
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Expand Down Expand Up @@ -518,7 +518,7 @@ func resourceDNSZoneRecordDelete(ctx context.Context, d *schema.ResourceData, m

func fillRRSet(d *schema.ResourceData, rType string, rrSet *dnssdk.RRSet) error {
// set filters
for _, resource := range d.Get(DNSZoneRecordSchemaFilter).(*schema.Set).List() {
for _, resource := range d.Get(DNSZoneRecordSchemaFilter).([]interface{}) {
filter := dnssdk.RecordFilter{}
filterData := resource.(map[string]interface{})
name := filterData[DNSZoneRecordSchemaFilterType].(string)
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk=
github.com/AlekSi/pointer v1.2.0 h1:glcy/gc4h8HnG2Z3ZECSzZ1IX1x2JxRVuDzaJwQE0+w=
github.com/AlekSi/pointer v1.2.0/go.mod h1:gZGfd3dpW4vEc/UlyfKKi1roIqcCgwOIvb0tSNSBle0=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/Edge-Center/edgecenter-dns-sdk-go v0.1.2 h1:6zdu2MXGY7P91oWfVa7jF+WWDHzmTt001ZbuAIRJ4N8=
github.com/Edge-Center/edgecenter-dns-sdk-go v0.1.2/go.mod h1:xWN2LYVokamADMRz1cPhOrYX/NlxiDJp9tjBumHU5G8=
github.com/Edge-Center/edgecenter-dns-sdk-go v0.1.3 h1:k36RWZ+dteXLMiEsu/KiSFSaNR7s4TfVhWL/zsTpCiU=
github.com/Edge-Center/edgecenter-dns-sdk-go v0.1.3/go.mod h1:xWN2LYVokamADMRz1cPhOrYX/NlxiDJp9tjBumHU5G8=
github.com/Edge-Center/edgecenter-storage-sdk-go v0.2.0 h1:1aPDpywWbaF7VEjP/GjVoSgcipxWTTzEPPZv5kOWE8A=
Expand Down
Loading