From b9c28c7a8fdd8fd9d1c2edb090e80046e1a27d39 Mon Sep 17 00:00:00 2001 From: Vasili Date: Tue, 31 May 2022 17:10:24 +0300 Subject: [PATCH] Clarify documentation for template file function (#11798) --- provisioner/file/provisioner.go | 2 +- website/content/partials/provisioner/file/Config-required.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/provisioner/file/provisioner.go b/provisioner/file/provisioner.go index b0f16c634..369eec742 100644 --- a/provisioner/file/provisioner.go +++ b/provisioner/file/provisioner.go @@ -25,7 +25,7 @@ type Config struct { // This is the content to copy to `destination`. If destination is a file, // content will be written to that file, in case of a directory a file named // `pkr-file-content` is created. It's recommended to use a file as the - // destination. A template_file might be referenced in here, or any + // destination. The `templatefile` function might be used here, or any // interpolation syntax. This attribute cannot be specified with source or // sources. Content string `mapstructure:"content" required:"true"` diff --git a/website/content/partials/provisioner/file/Config-required.mdx b/website/content/partials/provisioner/file/Config-required.mdx index ae787ef35..112818274 100644 --- a/website/content/partials/provisioner/file/Config-required.mdx +++ b/website/content/partials/provisioner/file/Config-required.mdx @@ -3,7 +3,7 @@ - `content` (string) - This is the content to copy to `destination`. If destination is a file, content will be written to that file, in case of a directory a file named `pkr-file-content` is created. It's recommended to use a file as the - destination. A template_file might be referenced in here, or any + destination. The `templatefile` function might be used here, or any interpolation syntax. This attribute cannot be specified with source or sources.