Skip to content

Commit

Permalink
nil checks when assigning to param map in resourceAwsSsmDocumentRead (#…
Browse files Browse the repository at this point in the history
…12891)

* add nil check when assingment from a doc parameter to the param map

* remove println
  • Loading branch information
dcjohnson authored and mbfrahry committed Mar 28, 2017
1 parent 8e3f807 commit d775ae1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions builtin/providers/aws/resource_aws_ssm_document.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,15 @@ func resourceAwsSsmDocumentRead(d *schema.ResourceData, meta interface{}) error
if dp.DefaultValue != nil {
param["default_value"] = *dp.DefaultValue
}
param["description"] = *dp.Description
param["name"] = *dp.Name
param["type"] = *dp.Type
if dp.Description != nil {
param["description"] = *dp.Description
}
if dp.Name != nil {
param["name"] = *dp.Name
}
if dp.Type != nil {
param["type"] = *dp.Type
}
params = append(params, param)
}

Expand Down

0 comments on commit d775ae1

Please sign in to comment.