Merge pull request #224 from ianunruh/feature/unseal-msg
Improve unseal CLI message
This commit is contained in:
commit
4981b8de29
|
@ -33,6 +33,18 @@ func (c *UnsealCommand) Run(args []string) int {
|
||||||
return 2
|
return 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sealStatus, err := client.Sys().SealStatus()
|
||||||
|
if err != nil {
|
||||||
|
c.Ui.Error(fmt.Sprintf(
|
||||||
|
"Error checking seal status: %s", err))
|
||||||
|
return 2
|
||||||
|
}
|
||||||
|
|
||||||
|
if !sealStatus.Sealed {
|
||||||
|
c.Ui.Output("Vault is already unsealed.")
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
args = flags.Args()
|
args = flags.Args()
|
||||||
|
|
||||||
value := c.Key
|
value := c.Key
|
||||||
|
|
Loading…
Reference in a new issue