Change in ovirt-engine[master]: restapi: version values for hosts are wrong

mpastern at redhat.com mpastern at redhat.com
Tue Jan 8 16:17:03 UTC 2013


Michael Pasternak has submitted this change and it was merged.

Change subject: restapi: version values for hosts are wrong
......................................................................


restapi: version values for hosts are wrong

When the host is being installed or is being rebooted
the version value is unknow and is initialized to -1.
Displaying this in the /api/hosts xml results in schema
validation errors.

This patch supresses the version information if it is
unknown.

Change-Id: Ib6cf8f5480b29e07b60f36465b8fa0db74ee5246
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=891301
Signed-off-by: Ravi Nori <rnori at redhat.com>
---
M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/HostMapper.java
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Michael Pasternak: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/10687
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib6cf8f5480b29e07b60f36465b8fa0db74ee5246
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <rnori at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Ravi Nori <rnori at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>



More information about the Engine-commits mailing list