terraform: better comments

This commit is contained in:
Mitchell Hashimoto 2014-08-19 09:05:50 -07:00
parent d8a999e5af
commit 776b5ace2e
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}