summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/http.go b/http.go
index 875f782..727bc99 100644
--- a/http.go
+++ b/http.go
@@ -91,16 +91,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
if route == "/dumpdroplet" {
- hostname := r.URL.Query().Get("hostname")
- d := me.cluster.FindDropletByName(hostname)
- if d == nil {
- log.Log(WARN, "can not find droplet hostname=", hostname)
- fmt.Fprintln(w, "can not find droplet hostname=", hostname)
- return
- }
- t := d.FormatTEXT()
- log.Log(WARN, t)
- fmt.Fprintln(w, t)
+ me.cluster.DumpDroplet(w, r)
return
}