From 83b3eb3be2be9b4213b374a9012cc4dc698594aa Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 2 Jun 2020 12:35:32 +0200 Subject: [PATCH] better words on the hcl2 merge --- website/pages/docs/from-1.5/blocks/build/source.mdx | 7 ++++--- website/pages/partials/from-1.5/builds/example-block.mdx | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/website/pages/docs/from-1.5/blocks/build/source.mdx b/website/pages/docs/from-1.5/blocks/build/source.mdx index 92195ed8a..73b8747a2 100644 --- a/website/pages/docs/from-1.5/blocks/build/source.mdx +++ b/website/pages/docs/from-1.5/blocks/build/source.mdx @@ -24,6 +24,7 @@ build { } ``` --> **Note:** If any top-level attribute is re-defined with the same name an -error will be displayed. For example: you cannot define the `output` field in -the source declaration **and** in the source usage. +-> **Note:** It is **not allowed** to set the same field in a top-level source + block and in a used source block. For example, if in the above example, the + top-level "amazon-ebs.example" source block also had an `output` field; + Packer would error. diff --git a/website/pages/partials/from-1.5/builds/example-block.mdx b/website/pages/partials/from-1.5/builds/example-block.mdx index be44f8c6a..811ca559c 100644 --- a/website/pages/partials/from-1.5/builds/example-block.mdx +++ b/website/pages/partials/from-1.5/builds/example-block.mdx @@ -12,7 +12,7 @@ build { # Use the singular `source` block set # specific fields. # Note that fields cannot be overwritten, in other words, you cannot - # set output from the top-level source block and here. + # set the 'output' field from the top-level source block and here. output = "different value" name = var.foo }