diff options
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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 } |
