From ab8e49d74b0c714498f6e63cff84d6e788d211aa Mon Sep 17 00:00:00 2001 From: "Jason T. Greene" Date: Sun, 29 Jan 2023 13:43:03 -0600 Subject: [PATCH] Add comment to clarify error handling intention Signed-off-by: Jason T. Greene --- pkg/machine/pull.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/machine/pull.go b/pkg/machine/pull.go index 1eb64dce67..00b7ae1350 100644 --- a/pkg/machine/pull.go +++ b/pkg/machine/pull.go @@ -67,6 +67,7 @@ func NewGenericDownloader(vmType, vmName, pullPath string) (DistributionDownload func supportedURL(path string) (url *url2.URL) { getURL, err := url2.Parse(path) if err != nil { + // ignore error, probably not a URL, fallback & treat as file path return nil }