Eldan Shachar has uploaded a new change for review. Change subject: restapi: display indication if vm is in run-once ......................................................................
restapi: display indication if vm is in run-once Added a field to the VM REST query to indicate if the vm is running in run-once mode. Change-Id: I69a502a196aed2382acc35302004ea3b7cd89909 Bug-Url: https://bugzilla.redhat.com/1158357 Signed-off-by: Eldan Shachar <[email protected]> --- M backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java 2 files changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/61/35261/1 diff --git a/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd b/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd index 86a5cce..8cab1fd 100644 --- a/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd +++ b/backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd @@ -3174,6 +3174,7 @@ <xs:element ref="instance_type" minOccurs="0" maxOccurs="1"/> <xs:element name="start_time" type="xs:dateTime" minOccurs="0"/> <xs:element name="stop_time" type="xs:dateTime" minOccurs="0"/> + <xs:element name="run_once" type="xs:boolean" minOccurs="0" maxOccurs="1" /> <xs:element name="custom_properties" type="CustomProperties" minOccurs="0"/> <xs:element name="payloads" type="Payloads" minOccurs="0"/> <xs:element name="statistics" type="Statistics" minOccurs="0" maxOccurs="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 4a6a4f7..7a190d3 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 @@ -360,6 +360,7 @@ model.setStartTime(DateMapper.map(entity.getLastStartTime(), null)); } + model.setRunOnce(entity.isRunOnce()); model.getDisplay().setAddress(entity.getDisplayIp()); Integer displayPort = entity.getDisplay(); model.getDisplay().setPort(displayPort==null || displayPort==-1 ? null : displayPort); -- To view, visit http://gerrit.ovirt.org/35261 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I69a502a196aed2382acc35302004ea3b7cd89909 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Eldan Shachar <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
