Don't error/warn when file isn't found

This commit is contained in:
Gregory Kurtzer
2020-12-19 00:38:48 -08:00
parent d91673290c
commit 5c354af31d

View File

@@ -12,7 +12,7 @@ func templateFileInclude(path string) string {
wwlog.Printf(wwlog.DEBUG, "Including file into template: %s\n", path)
content, err := ioutil.ReadFile(path)
if err != nil {
wwlog.Printf(wwlog.WARN, "Could not include file into template: %s\n", err)
wwlog.Printf(wwlog.VERBOSE, "Could not include file into template: %s\n", err)
}
return strings.TrimSuffix(string(content), "\n")
}