Skip to content

Commit

Permalink
Expose versionFingerprint instead of versionId from packer template
Browse files Browse the repository at this point in the history
  • Loading branch information
devashish-patel committed Jan 26, 2024
1 parent 12b8c88 commit 10d7aed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/hcp/registry/hcl.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ func (h *HCLRegistry) PopulateVersion(ctx context.Context) error {
}

versionID := h.bucket.Version.ID
versionFingerprint := h.bucket.Version.Fingerprint

// FIXME: Remove
h.configuration.HCPVars["iterationID"] = cty.StringVal(versionID)
h.configuration.HCPVars["versionID"] = cty.StringVal(versionID)
h.configuration.HCPVars["versionFingerprint"] = cty.StringVal(versionFingerprint)

sha, err := getGitSHA(h.configuration.Basedir)
if err != nil {
Expand Down

0 comments on commit 10d7aed

Please sign in to comment.