Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dynamic block for_each description #164

Merged
merged 1 commit into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion decoder/body_extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
{
Label: "for_each",
Description: lang.MarkupContent{
Value: "A meta-argument that accepts a map or a set of strings, and creates an instance for each item in that map or set.\n\n**Note**: A given block cannot use both `count` and `for_each`.",
Value: "A meta-argument that accepts a map or a set of strings, and creates an instance for each item in that map or set.",
Kind: lang.MarkdownKind,
},
Detail: "required, map of any single type or set of string",
Expand Down
5 changes: 2 additions & 3 deletions decoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,8 @@ func buildDynamicBlockSchema(inputSchema *schema.BodySchema) *schema.BlockSchema
schema.LiteralTypeExpr{Type: cty.Map(cty.DynamicPseudoType)},
schema.LiteralTypeExpr{Type: cty.Set(cty.String)},
},
IsRequired: true,
Description: lang.Markdown("A meta-argument that accepts a map or a set of strings, and creates an instance for each item in that map or set.\n\n" +
"**Note**: A given block cannot use both `count` and `for_each`."),
IsRequired: true,
Description: lang.Markdown("A meta-argument that accepts a map or a set of strings, and creates an instance for each item in that map or set."),
},
"iterator": {
Expr: schema.LiteralTypeOnly(cty.String),
Expand Down