summaryrefslogtreecommitdiff
path: root/event.go
diff options
context:
space:
mode:
Diffstat (limited to 'event.go')
-rw-r--r--event.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/event.go b/event.go
index 5c26b5d..05f8c7f 100644
--- a/event.go
+++ b/event.go
@@ -14,14 +14,14 @@ func (d *DropletT) Start() {
}
func (h *HyperT) RestartDaemon() {
- url := "http://" + h.Hostname + ":2520/kill"
+ url := "http://" + h.pb.Hostname + ":2520/kill"
s := shell.Wget(url)
log.Info("EVENT RestartDaemon", url, s)
h.lastpoll = time.Now()
h.killcount += 1
dur := time.Since(h.lastpoll) // Calculate the elapsed time
- log.Info("KILLED DAEMON", h.Hostname, shell.FormatDuration(dur), "curl", url)
+ log.Info("KILLED DAEMON", h.pb.Hostname, shell.FormatDuration(dur), "curl", url)
me.killcount += 1
// mark the cluster as unstable so droplet starts can be throttled
@@ -63,7 +63,7 @@ func (h *HyperT) Start(d *DropletT) (bool, string) {
return false, result
}
- url := "http://" + h.Hostname + ":2520/start?start=" + d.Hostname
+ url := "http://" + h.pb.Hostname + ":2520/start?start=" + d.pb.Hostname
s := shell.Wget(url)
result = "EVENT start droplet url: " + url + "\n"
result += "EVENT start droplet response: " + s.String()
@@ -100,8 +100,8 @@ func Start(name string) (bool, string) {
// make the list of hypervisors that are active and can start new droplets
var pool []*HyperT
for _, h := range me.hypers {
- result += fmt.Sprintln("could start droplet on", name, "on", h.Hostname, h.Active)
- if d.hyperPreferred == h.Hostname {
+ result += fmt.Sprintln("could start droplet on", name, "on", h.pb.Hostname, h.Active)
+ if d.hyperPreferred == h.pb.Hostname {
// the config file says this droplet should run on this hypervisor
a, b := h.Start(d)
return a, result + b