Add token accessor to wrap information if one exists

This commit is contained in:
Jeff Mitchell
2016-06-13 23:58:17 +00:00
parent 4f039d0427
commit 47dc1ccd25
13 changed files with 80 additions and 36 deletions

View File

@@ -44,6 +44,10 @@ func PrintRawField(ui cli.Ui, secret *api.Secret, field string) int {
if secret.WrapInfo != nil {
val = secret.WrapInfo.CreationTime.String()
}
case "wrapped_accessor":
if secret.WrapInfo != nil {
val = secret.WrapInfo.WrappedAccessor
}
case "refresh_interval":
val = secret.LeaseDuration
default: