show the accounts from the config file

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-23 10:04:22 -07:00
parent 84fc164e7f
commit f41884278b
1 changed files with 4 additions and 4 deletions

View File

@ -108,10 +108,10 @@ func parseConfig(defaultConfig string) {
log.Println(config.String("map1.key1.jwc1"))
for account, _ := range config.StringMap("cloud") {
port := config.String("cloud." + account + ".port")
proto := config.String("cloud." + account + ".proto")
hostname := config.String("cloud." + account + ".hostname")
fmt.Println(hostname, port, proto)
port := config.String("accounts." + account + ".port")
proto := config.String("accounts." + account + ".proto")
hostname := config.String("accounts." + account + ".hostname")
fmt.Println(account, hostname, port, proto)
}
if (config.String("nogui") == "true") {