From 7809242f417c2ac4287e75f30892e2c89020bd28 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Mon, 15 Feb 2021 13:41:23 +0100 Subject: [PATCH] quote template example --- hcl2template/types.required_plugins.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hcl2template/types.required_plugins.go b/hcl2template/types.required_plugins.go index 3e2ae4b3f..736aeb2c1 100644 --- a/hcl2template/types.required_plugins.go +++ b/hcl2template/types.required_plugins.go @@ -111,8 +111,8 @@ func decodeRequiredPluginsBlock(block *hcl.Block) (*RequiredPlugins, hcl.Diagnos Detail: fmt.Sprintf(`'%s = "%s"' plugin requirement calls are not possible.`+ ` You must define a whole block. For example:`+"\n"+ `%[1]s = {`+"\n"+ - ` source = github.com/hashicorp/%[1]s`+"\n"+ - ` version = %[2]s`+"\n"+`}`, + ` source = "github.com/hashicorp/%[1]s"`+"\n"+ + ` version = "%[2]s"`+"\n"+`}`, name, c), Subject: attr.Range.Ptr(), })