Skip to content

Commit

Permalink
If data exists in the output map use that instead when special casing
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Feb 15, 2018
1 parent 35d639f commit 9de3528
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion command/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ func RawField(secret *api.Secret, field string) (interface{}, bool) {
case "refresh_interval":
val = secret.LeaseDuration
case "data":
val = secret.Data
var ok bool
val, ok = secret.Data["data"]
if !ok {
val = secret.Data
}
default:
val = secret.Data[field]
}
Expand Down

0 comments on commit 9de3528

Please sign in to comment.