CLOUDSTACK-9029: Proper support to identify CentOS 7 version number#1033
Conversation
|
Isn't it safer to execute lsb_release -r and parse that output? |
|
LGTM, based on a set of tests that I run on this branch (which I rebased myself first): Result: And: Result: These test do not cover your change, all they do is show you didn't break them. Someone else needs to review the code. |
|
@wido The problem with that is that lsb_release doesn't come preinstalled in base centos installs: [cfiguerola@cent7 ~]$ lsb_release -r https://kenno.wordpress.com/2012/10/21/centos-lsb_release-command-not-found/ |
|
@Carles-Figuerola Understood. Don't mind my comment. In that case, LGTM. Code seems good. |
|
To double check, I also verified the bug fix itself. List hosts in current master: List hosts based on this PR: Thanks for the fix @Carles-Figuerola ! |
CLOUDSTACK-9029: Proper support to identify CentOS 7 version numberhttps://issues.apache.org/jira/browse/CLOUDSTACK-9029 * pr/1033: CLOUDSTACK-9029: Proper support to identify CentOS 7 version number Signed-off-by: Remi Bergsma <github@remi.nl>
https://issues.apache.org/jira/browse/CLOUDSTACK-9029