From 03d29386dd92d45ad3ada54dc282f229f7bed526 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 7 Jul 2020 16:50:15 +0200 Subject: [PATCH] fix error message typo (#9541) --- hcl2template/types.hcl_post-processor.go | 2 +- hcl2template/types.hcl_provisioner.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hcl2template/types.hcl_post-processor.go b/hcl2template/types.hcl_post-processor.go index 0afec4d4b..bc87e962f 100644 --- a/hcl2template/types.hcl_post-processor.go +++ b/hcl2template/types.hcl_post-processor.go @@ -36,7 +36,7 @@ func (p *HCL2PostProcessor) HCL2Prepare(buildVars map[string]interface{}) error case string: buildValues[k] = cty.StringVal(v) default: - return fmt.Errorf("unhandled builvar type: %T", v) + return fmt.Errorf("unhandled buildvar type: %T", v) } } ectx.Variables = map[string]cty.Value{ diff --git a/hcl2template/types.hcl_provisioner.go b/hcl2template/types.hcl_provisioner.go index 3ea1e35dc..26338231a 100644 --- a/hcl2template/types.hcl_provisioner.go +++ b/hcl2template/types.hcl_provisioner.go @@ -36,7 +36,7 @@ func (p *HCL2Provisioner) HCL2Prepare(buildVars map[string]interface{}) error { case string: buildValues[k] = cty.StringVal(v) default: - return fmt.Errorf("unhandled builvar type: %T", v) + return fmt.Errorf("unhandled buildvar type: %T", v) } } ectx.Variables = map[string]cty.Value{