Skip to content

Commit 13e06fb

Browse files
authored
Fix dynamic block for_each description (#164)
1 parent 6addab3 commit 13e06fb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

decoder/body_extensions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ resource "aws_elastic_beanstalk_environment" "example" {
19481948
{
19491949
Label: "for_each",
19501950
Description: lang.MarkupContent{
1951-
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`.",
1951+
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.",
19521952
Kind: lang.MarkdownKind,
19531953
},
19541954
Detail: "required, map of any single type or set of string",

decoder/decoder.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,8 @@ func buildDynamicBlockSchema(inputSchema *schema.BodySchema) *schema.BlockSchema
247247
schema.LiteralTypeExpr{Type: cty.Map(cty.DynamicPseudoType)},
248248
schema.LiteralTypeExpr{Type: cty.Set(cty.String)},
249249
},
250-
IsRequired: true,
251-
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" +
252-
"**Note**: A given block cannot use both `count` and `for_each`."),
250+
IsRequired: true,
251+
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."),
253252
},
254253
"iterator": {
255254
Expr: schema.LiteralTypeOnly(cty.String),

0 commit comments

Comments
 (0)