Fix issue with with Opsworks and empty Custom Cook Book sources (#6078)

* Remove computed value on opsworks update

* Adjust PR 6078 per catsby's request
This commit is contained in:
Justin Clark 2016-04-21 11:59:40 -07:00 committed by Clint
parent ae2f6e2cf4
commit f430fe280a
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ func resourceAwsOpsworksStackCustomCookbooksSource(d *schema.ResourceData) *opsw
func resourceAwsOpsworksSetStackCustomCookbooksSource(d *schema.ResourceData, v *opsworks.Source) {
nv := make([]interface{}, 0, 1)
if v != nil {
if v != nil && v.Type != nil && *v.Type != "" {
m := make(map[string]interface{})
if v.Type != nil {
m["type"] = *v.Type