Skip to content

Commit

Permalink
fixed mx record struct init. updated version.
Browse files Browse the repository at this point in the history
  • Loading branch information
edglynes committed Dec 27, 2019
1 parent eb8f8c4 commit 1d3e18e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion akamai/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

const (
Version = "0.1.4-dev-2"
Version = "0.1.4-dev-3"
)

// Config contains the Akamai provider configuration (unused).
Expand Down
2 changes: 1 addition & 1 deletion akamai/resource_akamai_gtm_cidrmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func populateNewCidrMapObject(d *schema.ResourceData) *gtm.CidrMap {

cidrObj := gtm.NewCidrMap(d.Get("name").(string))
cidrObj.DefaultDatacenter = &gtm.DatacenterBase{}
cidrObj.Assignments = make([]*gtm.CidrAssignment, 1)
cidrObj.Assignments = make([]*gtm.CidrAssignment, 0)
cidrObj.Links = make([]*gtm.Link, 1)
populateCidrMapObject(d, cidrObj)

Expand Down
6 changes: 3 additions & 3 deletions akamai/resource_akamai_gtm_property.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,9 @@ func resourceGTMv1PropertyExists(d *schema.ResourceData, meta interface{}) (bool
func populateNewPropertyObject(d *schema.ResourceData) *gtm.Property {

propObj := gtm.NewProperty(d.Get("name").(string))
propObj.TrafficTargets = make([]*gtm.TrafficTarget, 1)
propObj.LivenessTests = make([]*gtm.LivenessTest, 1)
propObj.MxRecords = make([]*gtm.MxRecord, 1)
propObj.TrafficTargets = make([]*gtm.TrafficTarget, 0)
propObj.LivenessTests = make([]*gtm.LivenessTest, 0)
propObj.MxRecords = make([]*gtm.MxRecord, 0)
populatePropertyObject(d, propObj)

return propObj
Expand Down

0 comments on commit 1d3e18e

Please sign in to comment.