Skip to content

Commit

Permalink
correctly set lease expiry info for renewable client tokens during re…
Browse files Browse the repository at this point in the history
…fresh
  • Loading branch information
pyncc committed Nov 5, 2018
1 parent 65768d7 commit a034b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vault/client/http.clj
Expand Up @@ -421,7 +421,7 @@
(renew-token
[this]
(let [response (api-request this :post "auth/token/renew-self" {})
auth-info (:auth (clean-body response))]
auth-info (lease/auth-lease (:auth (clean-body response)))]
(when-not (:client-token auth-info)
(throw (ex-info (str "No client token returned from token renewal response: "
(:status response) " " (:reason-phrase response))
Expand Down

0 comments on commit a034b34

Please sign in to comment.