compiles and runs
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
91d2a8a19d
commit
3b64d342d2
|
@ -14,6 +14,7 @@ import (
|
|||
var cluster *pb.Cluster
|
||||
|
||||
func readConfigFile() {
|
||||
cluster = new(pb.Cluster)
|
||||
homeDir, _ := os.UserHomeDir()
|
||||
fullname := filepath.Join(homeDir, ".config/virtigo.json")
|
||||
pfile, err := os.ReadFile(fullname)
|
||||
|
@ -73,6 +74,7 @@ func readDropletFile(filename string) {
|
|||
}
|
||||
me.droplets = append(me.droplets, d)
|
||||
log.Log(EVENT, "config new droplet", d.Hostname, d.ConfigState, d.hyperPreferred)
|
||||
cluster.AddDroplet(d.Hostname, 16, 256)
|
||||
} else {
|
||||
log.Info("not sure what to do here. duplicate droplet", name, "in config file")
|
||||
}
|
||||
|
@ -124,5 +126,6 @@ func addHypervisor(name string) *HyperT {
|
|||
h.pollHypervisor()
|
||||
}
|
||||
me.hypers = append(me.hypers, h)
|
||||
cluster.AddHypervisor(name, 16, 256)
|
||||
return h
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue