mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
command/keys: customize info message when listing keys
This commit is contained in:
parent
7b6f3d6dcc
commit
222adc92a0
@ -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…
x
Reference in New Issue
Block a user