From ef14c1f41f7bbfec634de8efed6372632265b1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lindh=C3=A9?= <7773090+lindhe@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:53:24 +0200 Subject: [PATCH] Remove example where type=null If type is always equal to null, it feels like an irrelevant example to bring up. --- .../from-1.5/contextual-source-variables.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website/content/partials/from-1.5/contextual-source-variables.mdx b/website/content/partials/from-1.5/contextual-source-variables.mdx index db375ef7074..492baae8f3c 100644 --- a/website/content/partials/from-1.5/contextual-source-variables.mdx +++ b/website/content/partials/from-1.5/contextual-source-variables.mdx @@ -1,6 +1,6 @@ # Source Variables -It is possible to access the `name` and `type` of your `source` from +It is possible to access the `name` of your `source` from provisioners and post-processors: ```hcl @@ -23,14 +23,14 @@ build { sources = ["null.first-example"] provisioner "shell-local" { - inline = ["echo ${source.name} and ${source.type}"] + inline = ["echo ${source.name}"] } } # This will echo something like: # -# roles.null.consul: consul and null -# roles.null.nomad: nomad and null -# roles.null.vault: vault and null -# roles.null.first-example: first-example and null +# roles.null.consul: consul +# roles.null.nomad: nomad +# roles.null.vault: vault +# roles.null.first-example: first-example ```