command/keys: customize info message when listing keys

This commit is contained in:
Ryan Uber 2014-09-08 23:30:55 -07:00
parent 7b6f3d6dcc
commit 222adc92a0

View File

@ -68,14 +68,14 @@ func (c *KeysCommand) Run(args []string) int {
defer client.Close()
if listKeys {
c.Ui.Info("Asking all members for installed keys...")
var keys map[string]int
var numNodes int
if wan {
c.Ui.Info("Asking all WAN members for installed keys...")
keys, numNodes, failures, err = client.ListKeysWAN()
} else {
c.Ui.Info("Asking all LAN members for installed keys...")
keys, numNodes, failures, err = client.ListKeysLAN()
}