Eldan Shachar has uploaded a new change for review. Change subject: restapi: show host-id for a vm in an unknown state ......................................................................
restapi: show host-id for a vm in an unknown state When a VM was running in an unknown state, REST would not return the current host-id for that VM. Changed mapper to return host-id (and other dynamic info) as long as the VM is not down for sure. Change-Id: I8010522e42d1a7cfc963b2408b22c3bc468e30eb Bug-Url: https://bugzilla.redhat.com/1144938 Signed-off-by: Eldan Shachar <[email protected]> --- M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/46/34146/1 diff --git a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java index 4c5624d..f885983 100644 --- a/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java +++ b/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java @@ -454,7 +454,7 @@ pool.setId(entity.getVmPoolId().toString()); model.setVmPool(pool); } - if (entity.getDynamicData() != null && entity.getStatus().isRunningOrPaused()) { + if (entity.getDynamicData() != null && !entity.getStatus().isNotRunning()) { if (model.getOs() != null && entity.getBootSequence() != null) { for (Boot boot : map(entity.getBootSequence(), null)) { model.getOs().getBoot().add(boot); -- To view, visit http://gerrit.ovirt.org/34146 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8010522e42d1a7cfc963b2408b22c3bc468e30eb Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5 Gerrit-Owner: Eldan Shachar <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
