show the accounts from the config file
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
84fc164e7f
commit
f41884278b
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue