From f41884278b2a27621a7a077f9b5a3e498689cd29 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 23 May 2019 10:04:22 -0700 Subject: [PATCH] show the accounts from the config file Signed-off-by: Jeff Carr --- config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.go b/config.go index fc7a469..8ce2591 100644 --- a/config.go +++ b/config.go @@ -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") {