Major refactor for Cobra and new pkg/app structure for wwctl

This commit is contained in:
Gregory Kurtzer
2020-11-10 21:28:39 -08:00
parent 0c369270ef
commit 189618a111
24 changed files with 658 additions and 130 deletions

View File

@@ -59,7 +59,7 @@ func runtimeOverlaySend(w http.ResponseWriter, req *http.Request) {
}
} else {
w.WriteHeader(503)
log.Printf("ERROR: No 'runtime overlay' set for node %s\n", node.Fqdn)
log.Printf("ERROR: No 'runtime system-overlay' set for node %s\n", node.Fqdn)
}
return

View File

@@ -27,7 +27,7 @@ func systemOverlaySend(w http.ResponseWriter, req *http.Request) {
}
} else {
w.WriteHeader(503)
log.Printf("ERROR: No 'system overlay' set for node %s\n", node.Fqdn)
log.Printf("ERROR: No 'system system-overlay' set for node %s\n", node.Fqdn)
}
return

View File

@@ -66,8 +66,8 @@ func main() {
http.HandleFunc("/kernel/", kernelSend)
http.HandleFunc("/kmods/", kmodsSend)
http.HandleFunc("/vnfs/", vnfsSend)
http.HandleFunc("/overlay-system/", systemOverlaySend)
http.HandleFunc("/overlay-runtime", runtimeOverlaySend)
http.HandleFunc("/system-overlay-system/", systemOverlaySend)
http.HandleFunc("/system-overlay-runtime", runtimeOverlaySend)
http.ListenAndServe(":9873", nil)
}