Add provisioning blueprint file

This commit is contained in:
Owen
2026-04-02 21:39:59 -04:00
parent 8d82460a76
commit f4d071fe27
4 changed files with 27 additions and 6 deletions

View File

@@ -540,12 +540,12 @@ func interpolateBlueprint(data []byte) []byte {
})
}
func sendBlueprint(client *websocket.Client) error {
if blueprintFile == "" {
func sendBlueprint(client *websocket.Client, file string) error {
if file == "" {
return nil
}
// try to read the blueprint file
blueprintData, err := os.ReadFile(blueprintFile)
blueprintData, err := os.ReadFile(file)
if err != nil {
logger.Error("Failed to read blueprint file: %v", err)
} else {