Skip to content

Commit

Permalink
helper/gpgkeys: fix for vault 1.10 (#4038)
Browse files Browse the repository at this point in the history
  • Loading branch information
briankassouf authored and jefferai committed Feb 23, 2018
1 parent ec63c19 commit 559f33c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions helper/pgpkeys/keybase.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 559f33c

Please sign in to comment.