Fix wwlog.Output format strings during overlay show

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-09-06 11:16:06 -06:00
parent 053dd9953a
commit cac6ae1cd0

View File

@@ -45,7 +45,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
return err
}
wwlog.Output(string(f))
wwlog.Output("%s", string(f))
} else {
if !util.IsFile(overlayFile) {
wwlog.Debug("%s is not a file", overlayFile)
@@ -106,7 +106,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
wwlog.Info("writeFile: %v", writeFile)
wwlog.Info("Filename: %s", destFileName)
}
wwlog.Output(outBuffer.String())
wwlog.Output("%s", outBuffer.String())
outBuffer.Reset()
}
destFileName = filenameFromTemplate[0][1]