From 878d844f5c404a1d6a762fc192db7b836fbdc5f3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 14 Aug 2014 23:33:30 -0700 Subject: [PATCH] helper/schema: comment --- helper/schema/schema.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helper/schema/schema.go b/helper/schema/schema.go index 9fe0d2f06..712720fcd 100644 --- a/helper/schema/schema.go +++ b/helper/schema/schema.go @@ -152,6 +152,8 @@ func (m schemaMap) diffList( switch t := schema.Elem.(type) { case *Schema: + // Copy the schema so that we can set Computed/ForceNew from + // the parent schema (the TypeList). t2 := *t t2.Computed = schema.Computed t2.ForceNew = schema.ForceNew