diff --git a/hcl2template/types.variables.go b/hcl2template/types.variables.go index 33df28a84ee..b3754e8f111 100644 --- a/hcl2template/types.variables.go +++ b/hcl2template/types.variables.go @@ -741,7 +741,6 @@ func (cfg *PackerConfig) collectInputVariableValues(env []string, files []*hcl.F Severity: hcl.DiagError, Summary: "Invalid argument value for -var variable", Detail: fmt.Sprintf("The received arg value for %s is not compatible with the variable's type constraint: %s.", name, err), - Subject: expr.Range().Ptr(), }) val = cty.DynamicVal }