From 4349a55e61882a430dad93ec5d13d692c206e914 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 2 Jun 2020 11:57:32 +0200 Subject: [PATCH] Explain that input values can be used in locals from example locals block --- website/pages/docs/from-1.5/blocks/locals.mdx | 2 -- website/pages/partials/from-1.5/locals/example-block.mdx | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/pages/docs/from-1.5/blocks/locals.mdx b/website/pages/docs/from-1.5/blocks/locals.mdx index d3b823f34..0a3c767c3 100644 --- a/website/pages/docs/from-1.5/blocks/locals.mdx +++ b/website/pages/docs/from-1.5/blocks/locals.mdx @@ -16,8 +16,6 @@ your Packer configuration. `@include 'from-1.5/locals/example-block.mdx'` -Local can be bare values or a mix of locals and or input variables. - # More on variables - Read the [full locals](/docs/from-1.5/locals) description for a more diff --git a/website/pages/partials/from-1.5/locals/example-block.mdx b/website/pages/partials/from-1.5/locals/example-block.mdx index 6fb024088..c0cb5e663 100644 --- a/website/pages/partials/from-1.5/locals/example-block.mdx +++ b/website/pages/partials/from-1.5/locals/example-block.mdx @@ -1,7 +1,9 @@ ```hcl # locals.pkr.hcl locals { - baz = "Foo is '${var.foo}'" + # locals can be bare values like: wee = local.baz + # locals can also be set with input variables : + baz = "Foo is '${var.foo}'" } ``` \ No newline at end of file