mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-05 07:51:58 +01:00
If lease_duration is not zero, output it even if there is no lease.
This commit is contained in:
parent
a439b483f5
commit
b0c97f8b8d
@ -47,8 +47,12 @@ func outputFormatTable(ui cli.Ui, s *api.Secret, whitespace bool) int {
|
||||
|
||||
if s.LeaseID != "" && s.LeaseDuration > 0 {
|
||||
input = append(input, fmt.Sprintf("lease_id %s %s", config.Delim, s.LeaseID))
|
||||
}
|
||||
if s.LeaseDuration > 0 {
|
||||
input = append(input, fmt.Sprintf(
|
||||
"lease_duration %s %d", config.Delim, s.LeaseDuration))
|
||||
}
|
||||
if s.LeaseID != "" && s.LeaseDuration > 0 {
|
||||
input = append(input, fmt.Sprintf(
|
||||
"lease_renewable %s %s", config.Delim, strconv.FormatBool(s.Renewable)))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user