From f430fe280a15fcb6132a94e9f52e58100edd1837 Mon Sep 17 00:00:00 2001 From: Justin Clark Date: Thu, 21 Apr 2016 11:59:40 -0700 Subject: [PATCH] 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 --- builtin/providers/aws/resource_aws_opsworks_stack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_opsworks_stack.go b/builtin/providers/aws/resource_aws_opsworks_stack.go index b852184d0..44748984d 100644 --- a/builtin/providers/aws/resource_aws_opsworks_stack.go +++ b/builtin/providers/aws/resource_aws_opsworks_stack.go @@ -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