template: fix comments and docs

Review notes from @lgfa29

Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
This commit is contained in:
Michael Schurter 2022-03-29 09:25:23 -07:00 committed by GitHub
parent 7a28fcb8af
commit 33fe04ff6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2234,7 +2234,7 @@ func TestTaskTemplateManager_writeToFile(t *testing.T) {
require.NoError(t, harness.startWithErr(), "couldn't setup initial harness")
defer harness.stop()
// Using writeToFile should cause a kill
// Using writeToFile should not cause a kill
select {
case <-harness.mockHooks.UnblockCh:
case <-harness.mockHooks.EmitEventCh:

View File

@ -350,7 +350,7 @@ see the [drivers documentation](/docs/drivers).
- `function_denylist` `([]string: ["plugin", "writeToFile"])` - Specifies a
list of template rendering functions that should be disallowed in job specs.
By default the `plugin` and "writeToFile" functions are disallowed as they
By default the `plugin` and `writeToFile` functions are disallowed as they
allow unrestricted root access to the host.
- `disable_file_sandbox` `(bool: false)` - Allows templates access to arbitrary