Skip to content

Port #49964 to master#57111

Merged
Ch3LL merged 3 commits intosaltstack:masterfrom
alexey-zhukovin:master-port-49964
May 26, 2021
Merged

Port #49964 to master#57111
Ch3LL merged 3 commits intosaltstack:masterfrom
alexey-zhukovin:master-port-49964

Conversation

@alexey-zhukovin
Copy link
Copy Markdown
Contributor

What does this PR do?

Port #49964 to master

@alexey-zhukovin alexey-zhukovin added needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases master-port labels May 6, 2020
@alexey-zhukovin alexey-zhukovin requested a review from a team as a code owner May 6, 2020 17:20
@ghost ghost requested review from twangboy and removed request for a team May 6, 2020 17:20
waynew and others added 3 commits May 20, 2021 10:37
I had considered doing something with regex like `\d+(\.\d+)*`, then I
realized that there are other valid version strings that perhaps do not
contain numerics separated by `.`, so this option is a bit more flexible
as far as what versions nginx can return.

The major weakness here is that it does require nginx to return the
version on the first line, and to use a `/` separator before the version
itself.

One potential alternative would be to use the regex
`r'(\w+\.(\w+\.?)*)'` and get groups()[0] from that, however that
*would* require at least a decimal point.

There's a number of other options that one could use here, however,
we're currently simply banking on nginx always returning the actual
version prefixed with a forward slash.
@waynew waynew force-pushed the master-port-49964 branch from c7f70a4 to c58cd4c Compare May 20, 2021 16:00
@waynew waynew removed needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases has-failing-test labels May 20, 2021
@Ch3LL Ch3LL merged commit 09cc2f3 into saltstack:master May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants