diff options
author | Jake Champlin <jake@gnu.space> | 2017-06-09 17:54:32 +0000 |
---|---|---|
committer | Jake Champlin <jake@gnu.space> | 2017-06-09 17:54:32 +0000 |
commit | 9b12e4fe6f3c95986f1f3ec791636c58ca7e7583 (patch) | |
tree | 38f5f12bec0e488a12f0459a7356e6b7de7d8f84 /vendor/github.com/hashicorp/terraform/helper/schema/schema.go | |
parent | cec3de8a3bcaffd21dedd1bf42da4b490cae7e16 (diff) | |
download | terraform-provider-statuscake-9b12e4fe6f3c95986f1f3ec791636c58ca7e7583.tar.gz terraform-provider-statuscake-9b12e4fe6f3c95986f1f3ec791636c58ca7e7583.tar.zst terraform-provider-statuscake-9b12e4fe6f3c95986f1f3ec791636c58ca7e7583.zip |
Transfer of provider code
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())} |