Mike Kolesnik has uploaded a new change for review.

Change subject: engine: Store boot order after plug/unplug vNIC
......................................................................

engine: Store boot order after plug/unplug vNIC

Store the updated boot order in DB after the plugging/unplugging is
performed.

Change-Id: I1fa77fbf727f4df96d5bfa3a2aaa4fc1c9188295
Bug-Url: https://bugzilla.redhat.com/??????
Signed-off-by: Mike Kolesnik <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/vm/ActivateDeactivateVmNicCommand.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/98/11698/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/vm/ActivateDeactivateVmNicCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/vm/ActivateDeactivateVmNicCommand.java
index 9d20405..3036a58 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/vm/ActivateDeactivateVmNicCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/vm/ActivateDeactivateVmNicCommand.java
@@ -92,7 +92,6 @@
         }
         // In any case, the device is updated
         TransactionSupport.executeInNewTransaction(updateDevice());
-        VmDeviceUtils.updateBootOrderInVmDevice(getVm().getStaticData());
         setSucceeded(true);
     }
 
@@ -103,6 +102,7 @@
             public Void runInTransaction() {
                 vmDevice.setIsPlugged(getParameters().getAction() == 
PlugAction.PLUG ? true : false);
                 getVmDeviceDao().update(vmDevice);
+                
VmDeviceUtils.updateBootOrderInVmDeviceAndStoreToDB(getVm().getStaticData());
                 return null;
             }
         };


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

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

Reply via email to