Browse Source

command/keys: customize info message when listing keys

pull/336/head
Ryan Uber 10 years ago
parent
commit
222adc92a0
  1. 4
      command/keys.go

4
command/keys.go

@ -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()
}

Loading…
Cancel
Save