From 5bc8fa1c8f0a8c8c6bd4b012a0072cbf4fd68f3e Mon Sep 17 00:00:00 2001 From: Joe Schmitt <1146681+schmittjoseph@users.noreply.github.com> Date: Thu, 29 Oct 2020 18:21:58 -0700 Subject: [PATCH] Properly update AdditionalFiles in isomaker (#309) Co-authored-by: Joe Schmitt --- toolkit/tools/isomaker/maker.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toolkit/tools/isomaker/maker.go b/toolkit/tools/isomaker/maker.go index 2c9cb030f2b..60da7f30a7d 100644 --- a/toolkit/tools/isomaker/maker.go +++ b/toolkit/tools/isomaker/maker.go @@ -304,7 +304,9 @@ func (im *IsoMaker) copyAndRenameConfigFiles() { func (im *IsoMaker) copyAndRenameAdditionalFiles(configFilesAbsDirPath string) { const additionalFilesSubDirName = "additionalfiles" - for _, systemConfig := range im.config.SystemConfigs { + for i := range im.config.SystemConfigs { + systemConfig := &im.config.SystemConfigs[i] + absAdditionalFiles := make(map[string]string) for localAbsFilePath, installedSystemAbsFilePath := range systemConfig.AdditionalFiles { isoRelativeFilePath := im.copyFileToConfigRoot(configFilesAbsDirPath, additionalFilesSubDirName, localAbsFilePath)