Skip to content

Commit

Permalink
Merge pull request #84 from hashicorp/store_url
Browse files Browse the repository at this point in the history
store source image url that was actually used, for recordkeeping
  • Loading branch information
SwampDragons authored Oct 7, 2021
2 parents 9dd57f6 + 2e33258 commit 606325e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions multistep/commonsteps/step_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ func (s *StepDownload) Run(ctx context.Context, state multistep.StateBag) multis
}
if err == nil {
state.Put(s.ResultKey, dst)
// Track the URL you actually used for the download.
state.Put("SourceImageURL", source)
return multistep.ActionContinue
}
// may be another url will work
Expand Down

0 comments on commit 606325e

Please sign in to comment.