Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

parse credentials without scheme #2248

Merged
merged 1 commit into from
Jul 11, 2019

Conversation

fnmeissner
Copy link
Contributor

When the host within the docker config has format IP:PORT
url.Parse(host) fails. This commit will first try re-parsing
with prepended scheme before returning any error.

When the host within the docker config has format IP:PORT
url.Parse(host) fails. This commit will first try reparsing
with prepended scheme before returning any error.
@squaremo
Copy link
Member

Thanks for this! I'm going to give it a quick go locally, then will review here.

Copy link
Member

@squaremo squaremo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK good. The explicit, early check for == https:// looked a little odd but I see that it's necessary, and it passes the existing tests plus the extra one, so 👍

@squaremo squaremo merged commit 54ec554 into fluxcd:master Jul 11, 2019
@squaremo squaremo added this to the 1.13.3 milestone Jul 11, 2019
squaremo added a commit that referenced this pull request Jul 25, 2019
squaremo added a commit that referenced this pull request Jul 25, 2019
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