Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Fixes error when '~/.vault-token' contains a trailing newline #10

Merged
merged 1 commit into from
May 2, 2019

Conversation

jasongwartz
Copy link

@jasongwartz jasongwartz commented May 2, 2019

First of all, thanks again for the great tool!

This PR fixes an error encountered by one of our developers which occured when they had manually created the ~/.vault-token file, and their editor had added a trailing newline. The error comes from the following line: https://github.com/hashicorp/vault/blob/master/api/client.go#L747

The main vault cli was patched for this in hashicorp/vault@f8c657a, after issues hashicorp/vault#1774 and hashicorp/vault#1902.

First of all, thanks for the great tool!

This PR fixes an error encountered by one of our developers which occured when they had manually created the `~/.vault-token` file, and their editor had added a trailing newline. The error comes from the following line: https://github.com/hashicorp/vault/blob/master/api/client.go#L747

The official vault client was patched for this in hashicorp/vault@f8c657a, after issues hashicorp/vault#1774 and hashicorp/vault#1902.
@Luzifer Luzifer merged commit 66ccd94 into Luzifer:master May 2, 2019
@Luzifer
Copy link
Owner

Luzifer commented May 2, 2019

Thank you very much for your contribution! 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants