Major refactor for Cobra and new pkg/app structure for wwctl
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user