diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/helper/schema/schema.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/helper/schema/schema.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/hashicorp/terraform/helper/schema/schema.go b/vendor/github.com/hashicorp/terraform/helper/schema/schema.go index 32d1721..632672a 100644 --- a/vendor/github.com/hashicorp/terraform/helper/schema/schema.go +++ b/vendor/github.com/hashicorp/terraform/helper/schema/schema.go | |||
@@ -1373,8 +1373,8 @@ func (m schemaMap) validateObject( | |||
1373 | k string, | 1373 | k string, |
1374 | schema map[string]*Schema, | 1374 | schema map[string]*Schema, |
1375 | c *terraform.ResourceConfig) ([]string, []error) { | 1375 | c *terraform.ResourceConfig) ([]string, []error) { |
1376 | raw, _ := c.GetRaw(k) | 1376 | raw, _ := c.Get(k) |
1377 | if _, ok := raw.(map[string]interface{}); !ok { | 1377 | if _, ok := raw.(map[string]interface{}); !ok && !c.IsComputed(k) { |
1378 | return nil, []error{fmt.Errorf( | 1378 | return nil, []error{fmt.Errorf( |
1379 | "%s: expected object, got %s", | 1379 | "%s: expected object, got %s", |
1380 | k, reflect.ValueOf(raw).Kind())} | 1380 | k, reflect.ValueOf(raw).Kind())} |