Nir Soffer has uploaded a new change for review.

Change subject: vm: Save state only if disk was updated
......................................................................

vm: Save state only if disk was updated

When updating disk parameters, there is no point in saving state if we
did not find the disk and modify it.

Change-Id: I081a0c7f544a003665bd02769489d601bdf7a86b
Signed-off-by: Nir Soffer <[email protected]>
---
M vdsm/virt/vm.py
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/19/40219/1

diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py
index c757653..5b82bdf 100644
--- a/vdsm/virt/vm.py
+++ b/vdsm/virt/vm.py
@@ -2756,8 +2756,7 @@
         else:
             with self._confLock:
                 disk.update(driveParams)
-
-        self.saveState()
+            self.saveState()
 
     def snapshot(self, snapDrives, memoryParams):
         """Live snapshot command"""


-- 
To view, visit https://gerrit.ovirt.org/40219
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I081a0c7f544a003665bd02769489d601bdf7a86b
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to