From a0cbbab03bf5f6620f92b428bdaaf2fe0922593a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 20 Jun 2014 12:12:53 -0700 Subject: [PATCH] diff: comments --- diff/resource_builder.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diff/resource_builder.go b/diff/resource_builder.go index a143765f1..57b323921 100644 --- a/diff/resource_builder.go +++ b/diff/resource_builder.go @@ -30,6 +30,9 @@ func (b *ResourceBuilder) Diff( // Go through the configuration and find the changed attributes for k, v := range c.Raw { newV := v.(string) + + // If this key is in the cleaned config, then use that value + // because it'll have its variables properly interpolated if cleanV, ok := c.Config[k]; ok { newV = cleanV.(string) }