diff options
Diffstat (limited to 'configfiles.go')
| -rw-r--r-- | configfiles.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configfiles.go b/configfiles.go index 1bdf153..f758058 100644 --- a/configfiles.go +++ b/configfiles.go @@ -33,15 +33,15 @@ func readDropletFile(filename string) { d = new(DropletT) d.Hostname = name if len(fields) > 1 && fields[1] != "ON" { - d.State = "OFF" + d.ConfigState = "OFF" } else { - d.State = "ON" + d.ConfigState = "ON" } if len(fields) >= 3 { d.hyperPreferred = fields[2] } me.droplets = append(me.droplets, d) - log.Log(EVENT, "NEW CONFIG DROPLET", d.Hostname, d.State, d.hyperPreferred) + log.Log(EVENT, "config new droplet", d.Hostname, d.ConfigState, d.hyperPreferred) } else { log.Info("not sure what to do here. duplicate droplet", name, "in config file") } @@ -83,7 +83,7 @@ func addHypervisor(name string) *HyperT { log.Info("not sure what to do here. duplicate hypervisor", name, "in config file") return h } - log.Log(EVENT, "Adding new hypervisor", name) + log.Log(EVENT, "config new hypervisor", name) h = new(HyperT) h.Hostname = name h.Autoscan = true |
