parent
206e5f4938
commit
df85c52376
7
http.go
7
http.go
|
@ -3,6 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
|
@ -32,6 +33,12 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Fprintln(w, j)
|
fmt.Fprintln(w, j)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if tmp == "/kill" {
|
||||||
|
log.Warn("KILLED")
|
||||||
|
fmt.Fprintln(w, "KILLED")
|
||||||
|
os.Exit(-1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if tmp == "/vms" {
|
if tmp == "/vms" {
|
||||||
s := poolHypervisor(hv)
|
s := poolHypervisor(hv)
|
||||||
|
|
Loading…
Reference in New Issue