From 08f394604cfbd17911bfffddef29a21de3b9f56f Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 11 Feb 2020 12:07:06 +0100 Subject: [PATCH] Update iso_config.go use defaultGetterClient instead of getter.DefaultClient --- common/iso_config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/iso_config.go b/common/iso_config.go index 338bafaf5..c092ccdd1 100644 --- a/common/iso_config.go +++ b/common/iso_config.go @@ -9,7 +9,6 @@ import ( "fmt" "strings" - getter "github.com/hashicorp/go-getter/v2" "github.com/hashicorp/packer/template/interpolate" ) @@ -163,7 +162,7 @@ func (c *ISOConfig) Prepare(*interpolate.Context) (warnings []string, errs []err if c.ISOChecksumURL != "" { url = c.ISOChecksumURL } - cksum, err := getter.DefaultClient.ChecksumFromFile(context.TODO(), url, c.ISOUrls[0]) + cksum, err := defaultGetterClient.ChecksumFromFile(context.TODO(), url, c.ISOUrls[0]) if err != nil { errs = append(errs, fmt.Errorf("Couldn't extract checksum from checksum file: %v", err)) } else {