Skip to content

Commit

Permalink
Fix issue with with Opsworks and empty Custom Cook Book sources (#6078)
Browse files Browse the repository at this point in the history
* Remove computed value on opsworks update

* Adjust PR 6078 per catsby's request
  • Loading branch information
u2mejc authored and catsby committed Apr 21, 2016
1 parent ae2f6e2 commit f430fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/providers/aws/resource_aws_opsworks_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f430fe2

Please sign in to comment.