Use 'ttl_seconds' in CLI output so as not to shadow actual 'ttl' parameter

This commit is contained in:
Jeff Mitchell 2015-09-21 10:48:06 -04:00
parent 425e286f90
commit e7dfb4f943

View file

@ -52,7 +52,7 @@ func outputFormatTable(ui cli.Ui, s *api.Secret, whitespace bool) int {
"lease_duration %s %d", config.Delim, s.LeaseDuration)) "lease_duration %s %d", config.Delim, s.LeaseDuration))
} else { } else {
input = append(input, fmt.Sprintf( input = append(input, fmt.Sprintf(
"ttl %s %d", config.Delim, s.LeaseDuration)) "ttl_seconds %s %d", config.Delim, s.LeaseDuration))
} }
if s.LeaseID != "" { if s.LeaseID != "" {
input = append(input, fmt.Sprintf( input = append(input, fmt.Sprintf(