From 63e43187f5aa2ef885019b715f40ac671efc7345 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Thu, 11 Mar 2021 12:25:26 +0000 Subject: [PATCH] WIP - crash repro --- .../providers/terraform/data_source_state.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/builtin/providers/terraform/data_source_state.go b/builtin/providers/terraform/data_source_state.go index f2fdd5122e..d236f45205 100644 --- a/builtin/providers/terraform/data_source_state.go +++ b/builtin/providers/terraform/data_source_state.go @@ -56,6 +56,24 @@ func dataSourceRemoteStateGetSchema() providers.Schema { DescriptionKind: configschema.StringMarkdown, Optional: true, }, + "foo": { + NestedType: &configschema.Object{ + Attributes: map[string]*configschema.Attribute{ + "one": { + Type: cty.String, + Optional: true, + }, + "two": { + Type: cty.Number, + Optional: true, + }, + }, + Nesting: configschema.NestingSingle, + }, + Description: "Testing something", + DescriptionKind: configschema.StringMarkdown, + Optional: true, + }, }, }, }