From 559f33c4f2b5a76e1636ce1b9c9832c3a49aef20 Mon Sep 17 00:00:00 2001 From: Brian Kassouf Date: Fri, 23 Feb 2018 11:47:25 -0800 Subject: [PATCH] helper/gpgkeys: fix for vault 1.10 (#4038) --- helper/pgpkeys/keybase.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/helper/pgpkeys/keybase.go b/helper/pgpkeys/keybase.go index 5c14cbcedc91..c116194b0bd7 100644 --- a/helper/pgpkeys/keybase.go +++ b/helper/pgpkeys/keybase.go @@ -49,25 +49,25 @@ func FetchKeybasePubkeys(input []string) (map[string]string, error) { } defer resp.Body.Close() - type publicKeys struct { + type PublicKeys struct { Primary struct { Bundle string } } - type them struct { - publicKeys `json:"public_keys"` + type LThem struct { + PublicKeys `json:"public_keys"` } - type kbResp struct { + type KbResp struct { Status struct { Name string } - Them []them + Them []LThem } - out := &kbResp{ - Them: []them{}, + out := &KbResp{ + Them: []LThem{}, } if err := jsonutil.DecodeJSONFromReader(resp.Body, out); err != nil {