Moti Asayag has submitted this change and it was merged.
Change subject: core,restapi: Report version parts for host's os element
......................................................................
core,restapi: Report version parts for host's os element
The version parts of host's os are being parsed and reported
properly as parsed from the host os:
For RHEL:
<os type="RHEL">
<version major="7" minor="2" full_version="7.2 -
9.el7"/>
</os>
For RHEV-H:
<os type="RHEV Hypervisor">
<version major="7" minor="2" full_version="7.2 -
20160711.0.el7ev"/>
</os>
For ovirt-node:
<os type="oVirt Node">
<version major="3" minor="6" full_version="3.6 -
0.999.201608161021.el7.centos"/>
</os>
Change-Id: Id845c71160f4af3b5bf9474beaaad3540ecafe3d
Bug-Url:
https://bugzilla.redhat.com/1368134
Signed-off-by: Moti Asayag <masayag(a)redhat.com>
---
M backend/manager/modules/compat/src/main/java/org/ovirt/engine/core/compat/Version.java
M
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostMapper.java
M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/OS.java
M
backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/OSParserTest.java
M backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/OSTest.java
5 files changed, 96 insertions(+), 75 deletions(-)
Approvals:
Martin Peřina: Looks good to me, approved
Juan Hernandez: Looks good to me, but someone else must approve
Jenkins CI: Passed CI tests
Moti Asayag: Verified
--
To view, visit
https://gerrit.ovirt.org/62627
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id845c71160f4af3b5bf9474beaaad3540ecafe3d
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <masayag(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Martin Peřina <mperina(a)redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag(a)redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>