diff options
| author | Jeff Carr <[email protected]> | 2025-03-12 13:16:05 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-12 13:17:19 -0500 |
| commit | 767380abd080682f2e13d8d41633c0f600b8f616 (patch) | |
| tree | 932fdffe21bce59c57580857135633b4ff7ef196 /doGui.go | |
| parent | bb4a6a01df71f7ce4338b8f61806ebf8832bffbf (diff) | |
the forgotten patchv0.0.47
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -11,6 +11,7 @@ import ( "go.wit.com/gui" "go.wit.com/lib/gadgets" + "go.wit.com/lib/protobuf/zoopb" "go.wit.com/log" ) @@ -21,7 +22,7 @@ func refresh() { log.Info("zookeeper scan here") } if me.zood != nil { - doMachinesUpgradeTable() + me.zood.doMachinesUpgradeTable(me.machines) } } @@ -63,3 +64,15 @@ func doGui() { refresh() } } + +func saveMachineState() { + cur := zoopb.NewMachines() + + all := me.machines.SortByHostname() + for all.Scan() { + m := all.Next() + log.Info("have machine:", m.Hostname) + cur.Append(m) + } + cur.ConfigSave() +} |
