Skip to content

Commit

Permalink
Remove repeated code
Browse files Browse the repository at this point in the history
  • Loading branch information
devashish-patel authored and lbajolet-hashicorp committed Jan 26, 2024
1 parent 5f322ea commit d2a22de
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions hcl2template/types.packer_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ func (cfg *PackerConfig) EvalContext(ctx BlockContext, variables map[string]cty.
"name": cty.UnknownVal(cty.String),
}),
buildAccessor: cty.UnknownVal(cty.EmptyObject),
packerAccessor: cty.ObjectVal(map[string]cty.Value{
"version": cty.StringVal(cfg.CorePackerVersionString),
"iterationID": cty.UnknownVal(cty.String),
"versionFingerprint": cty.UnknownVal(cty.String),
}),
pathVariablesAccessor: cty.ObjectVal(map[string]cty.Value{
"cwd": cty.StringVal(strings.ReplaceAll(cfg.Cwd, `\`, `/`)),
"root": cty.StringVal(strings.ReplaceAll(cfg.Basedir, `\`, `/`)),
Expand Down

0 comments on commit d2a22de

Please sign in to comment.