From 776b5ace2e3441c258e97cedcee966aa16f950f8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 19 Aug 2014 09:05:50 -0700 Subject: [PATCH] terraform: better comments --- terraform/resource.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform/resource.go b/terraform/resource.go index b5a29c155..29a58b3f2 100644 --- a/terraform/resource.go +++ b/terraform/resource.go @@ -89,11 +89,13 @@ func (c *ResourceConfig) CheckSet(keys []string) []error { // The second return value is true if the get was successful. Get will // not succeed if the value is being computed. func (c *ResourceConfig) Get(k string) (interface{}, bool) { + // First try to get it from c.Config since that has interpolated values result, ok := c.get(k, c.Config) if ok { return result, ok } + // Otherwise, just get it from the raw config return c.get(k, c.Raw) }