From a2f5fbadf65148fa4f678e13b49eaa190c5f2855 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Mon, 23 Jul 2018 09:54:08 -0700 Subject: [PATCH] don't fail if you can't find abs or relative path. --- common/iso_config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/iso_config.go b/common/iso_config.go index 857c13f57..8736586dc 100644 --- a/common/iso_config.go +++ b/common/iso_config.go @@ -147,12 +147,14 @@ func (c *ISOConfig) parseCheckSumFile(rd *bufio.Reader) error { absPath, err := filepath.Abs(u.Path) if err != nil { - return fmt.Errorf("Unable to generate absolute path from provided iso_url: %s", err) + log.Printf("Unable to generate absolute path from provided iso_url: %s", err) + absPath = "" } relpath, err := filepath.Rel(filepath.Dir(checksumurl.Path), absPath) if err != nil { - return err + log.Printf("Unable to determine relative pathing; continuing with abspath.") + relpath = "" } filename := filepath.Base(u.Path)