add virtigod to display
This commit is contained in:
parent
f90c4af25e
commit
a24c5f67e5
|
@ -132,13 +132,19 @@ func AddMachinesPB(tbox *gui.Node, pb *zoopb.Machines) *zoopb.MachinesTable {
|
||||||
t.AddStringFunc("zood", func(m *zoopb.Machine) string {
|
t.AddStringFunc("zood", func(m *zoopb.Machine) string {
|
||||||
return findVersion(m, "zood")
|
return findVersion(m, "zood")
|
||||||
})
|
})
|
||||||
t.AddStringFunc("virtigod", func(m *zoopb.Machine) string {
|
virtbut := t.AddButtonFunc("virtigod", func(m *zoopb.Machine) string {
|
||||||
ver := findVersion(m, "virtigod")
|
ver := findVersion(m, "virtigod")
|
||||||
if ver == "n/a" {
|
if ver == "n/a" {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
return ver
|
return ver
|
||||||
})
|
})
|
||||||
|
virtbut.Custom = func(m *zoopb.Machine) {
|
||||||
|
log.Info("Triggering machine", m.Hostname, "to upgrade virtigod")
|
||||||
|
m.Upgrade = true
|
||||||
|
m.UpgradeCmd = "apt install virtigod"
|
||||||
|
}
|
||||||
|
|
||||||
delf := func(m *zoopb.Machine) string {
|
delf := func(m *zoopb.Machine) string {
|
||||||
return "delete"
|
return "delete"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue