fix build
This commit is contained in:
parent
af7984a887
commit
254e496abf
2
doGui.go
2
doGui.go
|
@ -77,5 +77,5 @@ func saveMachineState() {
|
||||||
log.Info("have machine:", m.Hostname)
|
log.Info("have machine:", m.Hostname)
|
||||||
cur.Append(m)
|
cur.Append(m)
|
||||||
}
|
}
|
||||||
cur.ConfigSave()
|
cur.ConfigSave(me.machinesfile)
|
||||||
}
|
}
|
||||||
|
|
7
main.go
7
main.go
|
@ -33,9 +33,12 @@ func main() {
|
||||||
me.hostname, _ = os.Hostname()
|
me.hostname, _ = os.Hostname()
|
||||||
me.pollDelay = time.Hour
|
me.pollDelay = time.Hour
|
||||||
me.machines = zoopb.NewMachines()
|
me.machines = zoopb.NewMachines()
|
||||||
if err := me.machines.ConfigLoad(); err != nil {
|
if fpath, err := me.machines.ConfigLoad(); err != nil {
|
||||||
log.Warn("load config failed", err)
|
log.Warn("load config failed", err)
|
||||||
os.Exit(-1)
|
me.machinesfile = fpath
|
||||||
|
// os.Exit(-1)
|
||||||
|
} else {
|
||||||
|
me.machinesfile = fpath
|
||||||
}
|
}
|
||||||
if argv.List != nil {
|
if argv.List != nil {
|
||||||
log.Info("do list here")
|
log.Info("do list here")
|
||||||
|
|
|
@ -32,4 +32,5 @@ type mainType struct {
|
||||||
machinesBox *gui.Node // the machines gui parent box widget
|
machinesBox *gui.Node // the machines gui parent box widget
|
||||||
machinesTB *zoopb.MachinesTable // the machines gui table buffer
|
machinesTB *zoopb.MachinesTable // the machines gui table buffer
|
||||||
zood *stdTableWin // the zood version window
|
zood *stdTableWin // the zood version window
|
||||||
|
machinesfile string // where the machines.pb file should be stored
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue