fix droplet start()
This commit is contained in:
parent
82ebc25936
commit
7fd5089917
2
Makefile
2
Makefile
|
@ -120,7 +120,7 @@ protogen:
|
|||
|
||||
gocui: install
|
||||
virtigo --gui gocui --gui-verbose --gui-file ../../toolkits/gocui/gocui.so --admin
|
||||
# virtigo --gui gocui --gui-verbose --gui-file ../../toolkits/gocui/gocui.so >/tmp/forge.log 2>&1
|
||||
# virtigo --gui gocui --gui-verbose --gui-file ../../toolkits/gocui/gocui.so --admin >/tmp/forge.log 2>&1
|
||||
|
||||
log:
|
||||
journalctl -f -xeu virtigod.service
|
||||
|
|
|
@ -108,6 +108,15 @@ func (dw *stdDropletTableWin) doInactiveDroplets(pb *virtpb.Droplets) {
|
|||
})
|
||||
dropon.Custom = func(d *virtpb.Droplet) {
|
||||
log.Info("start droplet here", d.Hostname)
|
||||
log.Info("should start droplet here")
|
||||
log.Info(d.SprintHeader())
|
||||
e := new(virtpb.Event)
|
||||
e.Etype = virtpb.EventType_POWERON
|
||||
e.DropletUuid = d.Uuid
|
||||
|
||||
if err := dw.admin.postEvent(e); err != nil {
|
||||
log.Info("droplet start err", err)
|
||||
}
|
||||
}
|
||||
|
||||
vp := t.AddButtonFunc("Verify Config", func(p *virtpb.Droplet) string {
|
||||
|
|
Loading…
Reference in New Issue