Skip to content

Commit 51f9fdb

Browse files
author
Fergal Gribben
committed
Updated sessionKey to session_key in the endpoint response
1 parent 3a6a872 commit 51f9fdb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ $ curl \
415415
```json
416416
{
417417
"data": {
418-
"sessionKey": "9:720D9B92D50D4F7C404C8C412BEB73B47E0A2FA2E822C13201A79D5A2694F9F5"
418+
"session_key": "9:720D9B92D50D4F7C404C8C412BEB73B47E0A2FA2E822C13201A79D5A2694F9F5"
419419
}
420420
}
421-
```
421+
```

gpg/path_show_session_key.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ ParsePackets:
123123

124124
return &logical.Response{
125125
Data: map[string]interface{}{
126-
"sessionKey": sessionKey,
126+
"session_key": sessionKey,
127127
},
128128
}, nil
129129
}

gpg/path_show_session_key_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func TestGPG_ShowSessionKey(t *testing.T) {
4949
if resp == nil {
5050
t.Fatalf("no name key found in response data %#v", resp)
5151
}
52-
plaintext, ok := resp.Data["sessionKey"]
52+
plaintext, ok := resp.Data["session_key"]
5353
if !ok {
5454
t.Fatalf("no name key found in response data %#v", resp.Data)
5555
}

0 commit comments

Comments
 (0)