Martin Beták has uploaded a new change for review.

Change subject: restapi: Display address and port when the VM is paused
......................................................................

restapi: Display address and port when the VM is paused

Return address and port in the display even when the
VM status is paused

Change-Id: I551ef122cd201cf7fec4f2bfacaa1b7e7a41fd26
Signed-off-by: Martin Betak <[email protected]>
---
M 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/02/12002/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 e2a477f..762085a 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
@@ -987,13 +987,16 @@
         return pin;
     }
 
+    // consider renaming this method
+    // it is only called from the map method to determine whether to display 
the address, port, ... properties in display
     private static boolean 
getIsVmRunning(org.ovirt.engine.core.common.businessentities.VM entity) {
         return entity.getStatus() == VMStatus.Up ||
                 entity.getStatus() == VMStatus.PoweringUp ||
                 entity.getStatus() == VMStatus.WaitForLaunch ||
                 entity.getStatus() == VMStatus.PoweredDown ||
                 entity.getStatus() == VMStatus.RebootInProgress ||
-                entity.getStatus() == VMStatus.RestoringState;
+                entity.getStatus() == VMStatus.RestoringState ||
+                entity.getStatus() == VMStatus.Paused;
     }
 
     public static UsbPolicy getUsbPolicyOnCreate(Usb usb, VDSGroup vdsGroup) {


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I551ef122cd201cf7fec4f2bfacaa1b7e7a41fd26
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Beták <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to