command/init: show root token
This commit is contained in:
parent
8c1b90f591
commit
bd471bfffb
|
@ -45,5 +45,6 @@ type InitStatusResponse struct {
|
|||
}
|
||||
|
||||
type InitResponse struct {
|
||||
Keys []string
|
||||
Keys []string
|
||||
RootToken string `json:"root_token"`
|
||||
}
|
||||
|
|
|
@ -43,6 +43,8 @@ func (c *InitCommand) Run(args []string) int {
|
|||
c.Ui.Output(fmt.Sprintf("Key %d: %s", i+1, key))
|
||||
}
|
||||
|
||||
c.Ui.Output(fmt.Sprintf("Initial Root Token: %s", resp.RootToken))
|
||||
|
||||
c.Ui.Output(fmt.Sprintf(
|
||||
"\n"+
|
||||
"Vault initialized with %d keys and a key threshold of %d!\n\n"+
|
||||
|
|
Loading…
Reference in New Issue