show the accounts

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-23 10:03:27 -07:00
parent b9ade31605
commit 6766a7fd15
1 changed files with 3 additions and 4 deletions

View File

@ -78,14 +78,13 @@ func makeCloudInfoBox(custom func(int, string)) *ui.Box {
agrid.SetPadded(true) agrid.SetPadded(true)
for account, _ := range config.StringMap("accounts") { for account, _ := range config.StringMap("accounts") {
hostname := config.String("cloud." + account + ".hostname") hostname := config.String("accounts." + account + ".hostname")
domainname := config.String("cloud." + account + ".hostname") domainname := config.String("accounts." + account + ".domainname")
port := config.String("cloud." + account + ".port") port := config.String("accounts." + account + ".port")
a := account + " " + hostname + " " + domainname + " " + port a := account + " " + hostname + " " + domainname + " " + port
log.Println("ACCOUNT: ", a) log.Println("ACCOUNT: ", a)
vbox.Append(ui.NewLabel(a), false) vbox.Append(ui.NewLabel(a), false)
} }
os.Exit(0)
return hbox return hbox
} }