Martin Peřina has uploaded a new change for review.

Change subject: core: Unifies testing devices are CDs
......................................................................

core: Unifies testing devices are CDs

Utilizes VmDeviceCommonUtils.isCD() on all places where testing if
device is a CD.

Change-Id: I6c1b848969ce1fc38de18aa2e5533fd38486c181
Signed-off-by: Martin Perina <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/VmDeviceCommonUtils.java
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/60/18160/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/VmDeviceCommonUtils.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/VmDeviceCommonUtils.java
index d46c342..03ebbe3 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/VmDeviceCommonUtils.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/VmDeviceCommonUtils.java
@@ -157,9 +157,7 @@
      */
     private static int setCDBootOrder(List<VmDevice> devices, int bootOrder) {
         for (VmDevice device : devices) {
-            if (device.getType() == VmDeviceGeneralType.DISK
-                    && device.getDevice().equals(
-                            VmDeviceType.CDROM.getName())) {
+            if (isCD(device)) {
                 if (device.getIsPlugged()) {
                     device.setBootOrder(++bootOrder);
                 }


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

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

Reply via email to