mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-08 16:22:15 -04:00
builder/virtualbox/common: remove unused url variable (#8559)
This commit is contained in:
parent
9f6eb0ef65
commit
8098ba9cdf
1 changed files with 1 additions and 4 deletions
|
|
@ -67,16 +67,13 @@ func (s *StepDownloadGuestAdditions) Run(ctx context.Context, state multistep.St
|
|||
|
||||
checksumType := "sha256"
|
||||
|
||||
// Grab the guest_additions_url as specified by the user.
|
||||
url := s.GuestAdditionsURL
|
||||
|
||||
// Initialize the template context so we can interpolate some variables..
|
||||
s.Ctx.Data = &guestAdditionsUrlTemplate{
|
||||
Version: version,
|
||||
}
|
||||
|
||||
// Interpolate any user-variables specified within the guest_additions_url
|
||||
url, err = interpolate.Render(s.GuestAdditionsURL, &s.Ctx)
|
||||
url, err := interpolate.Render(s.GuestAdditionsURL, &s.Ctx)
|
||||
if err != nil {
|
||||
err := fmt.Errorf("Error preparing guest additions url: %s", err)
|
||||
state.Put("error", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue