Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Backport of Inspecting boolean env var values. into release/0.4.x #1742

Conversation

hc-github-team-waypoint
Copy link
Collaborator

Backport

This PR is auto-generated from #1699 to be assessed for backporting due to the inclusion of the label backport/0.4.x.

The below text is copied from the body of the original PR.


Previously, we were taking any value for boolean env vars to mean "true". If someone specified WAYPOINT_SERVER_TLS=false, we would take that to mean true. This fixes that.

Note on the implementation - I hate to be the person to introduce a generic "util" package. If anyone has any better ideas for where to put this little function, or feels like we should just strconv in-line every time, I am open to those ideas.

@hc-github-team-waypoint hc-github-team-waypoint merged commit d8a6b0c into release/0.4.x Jun 30, 2021
@hc-github-team-waypoint hc-github-team-waypoint deleted the backport/parse-bool/adequately-grateful-marten branch June 30, 2021 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants