nil checks when assigning to param map in resourceAwsSsmDocumentRead (#12891)
* add nil check when assingment from a doc parameter to the param map * remove println
This commit is contained in:
parent
3c94a89a05
commit
934aa22549
|
@ -205,9 +205,15 @@ func resourceAwsSsmDocumentRead(d *schema.ResourceData, meta interface{}) error
|
|||
if dp.DefaultValue != nil {
|
||||
param["default_value"] = *dp.DefaultValue
|
||||
}
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue