Skip to content

Commit

Permalink
Fixed Domain changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AshuSoni-crest committed Aug 18, 2021
2 parents 1da0d32 + 9a5dbbf commit 979a978
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions constellix/resource_constellix_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ func resourceConstellixDNSImport(d *schema.ResourceData, m interface{}) ([]*sche
}

soaset := make(map[string]interface{})

if value, ok := d.GetOk("soa"); ok {
tp := value.(map[string]interface{})
if tp["email"] != nil {
Expand Down Expand Up @@ -301,14 +300,12 @@ func resourceConstellixDNSRead(d *schema.ResourceData, m interface{}) error {
}

soaset := make(map[string]interface{})

if value, ok := d.GetOk("soa"); ok {
tp := value.(map[string]interface{})
if tp["email"] != nil {
soaset["email"] = stripQuotes(obj.S("soa", "email").String())
}
}

if obj.Exists("soa") {
soaset["primary_nameserver"] = stripQuotes(obj.S("soa", "primaryNameserver").String())
soaset["ttl"] = stripQuotes(obj.S("soa", "ttl").String())
Expand Down
1 change: 0 additions & 1 deletion constellix/resource_constellix_geo_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func resourceConstellixIPFilter() *schema.Resource {
Type: schema.TypeString,
},
Optional: true,
// Computed: true,
},
"geoip_regions": &schema.Schema{
Type: schema.TypeList,
Expand Down

0 comments on commit 979a978

Please sign in to comment.