New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
haproxy -v do not respect -q #2509
Comments
Switched this to a feature request as you're requesting a change of behavior. Interestingly you expect to see "2.4.25" being returned while most others would expect to see the full version, which is "2.4.25-1 |
hi, fine with me :) About the revision number of debian if i want the package version i could use dpkg for that, here this is haproxy version. I think the most intresting part for -vq ( or -vqq ;p) is the major/minor version because haproxy is feature compatible by major+minor version, so the shorter return could be the one returning the "feature version" like 2.2, 2.9 3.0 etc... corresponding to the feature and compatibility of it. best regards, |
Do you need to know the version or do you just need to know whether it is higher or lower than a given version? The latter is already possible via:
|
I agree with Tim here, when checking for compatibility, |
it does not seems to work for me in version less than 2.7 (i dont have all versions but...)
|
It's available as of HAProxy 2.5. |
Which means that if not supported, it's <2.5 hence possibly 2.4 for you :-) |
yes most of my installs are 2.4, i will jump to 2.8. |
Detailed Description of the Problem
hi,
there is a lot of time where we need to know the version of haproxy but we have to play with regex to get it from the command line :)
logicaly haproxy -v -q should only output
2.4.25
but haproxy ignore the -q
Expected Behavior
-q should be taken in account and return only the version
Steps to Reproduce the Behavior
type haproxy -v and haproxy -v -q
Do you have any idea what may have caused this?
No response
Do you have an idea how to solve the issue?
add -q case in the -v code :D
What is your configuration?
Output of
haproxy -vv
Last Outputs and Backtraces
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: