command/init: show root token

This commit is contained in:
Mitchell Hashimoto 2015-03-29 16:25:53 -07:00
parent 8c1b90f591
commit bd471bfffb
2 changed files with 4 additions and 1 deletions

View File

@ -45,5 +45,6 @@ type InitStatusResponse struct {
}
type InitResponse struct {
Keys []string
Keys []string
RootToken string `json:"root_token"`
}

View File

@ -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"+