fix: added missing output maps

This commit is contained in:
David Allen 2024-12-03 12:51:13 -07:00
parent 69aac3c929
commit 5ca4d17d42
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -85,6 +85,7 @@ var generateCmd = &cobra.Command{
} }
// if we have more than one target and output is set, create configs in directory // if we have more than one target and output is set, create configs in directory
outputMap := generator.ConvertContentsToString(outputBytes)
writeOutput(outputBytes, len(targets), len(outputMap)) writeOutput(outputBytes, len(targets), len(outputMap))
} }
}, },
@ -106,6 +107,7 @@ func RunTargets(conf *config.Config, args []string, targets ...string) {
} }
// if we have more than one target and output is set, create configs in directory // if we have more than one target and output is set, create configs in directory
outputMap := generator.ConvertContentsToString(outputBytes)
writeOutput(outputBytes, len(targets), len(outputMap)) writeOutput(outputBytes, len(targets), len(outputMap))
// remove any targets that are the same as current to prevent infinite loop // remove any targets that are the same as current to prevent infinite loop