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