builder/virtualbox/common: remove unused url variable (#8559)

pull/8571/head
Lars Lehtonen 6 years ago committed by Adrien Delorme
parent 9f6eb0ef65
commit 8098ba9cdf

@ -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…
Cancel
Save