Skip to content

Commit

Permalink
Fix dynamic block for_each description (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck authored Nov 29, 2022
1 parent 6addab3 commit 13e06fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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

0 comments on commit 13e06fb

Please sign in to comment.