Peter V. Saveliev has uploaded a new change for review.

Change subject: [WIP] BZ#855922, fix attribute error during migration
......................................................................

[WIP] BZ#855922, fix attribute error during migration

way 2: skip read-only properties

Signed-off-by: Peter V. Saveliev <[email protected]>
Change-Id: I1cd2ffaa3221f37af968df38ba8bcd285e25122d
---
M vdsm/vm.py
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/86/8186/1

diff --git a/vdsm/vm.py b/vdsm/vm.py
index 9191681..3e60599 100644
--- a/vdsm/vm.py
+++ b/vdsm/vm.py
@@ -58,7 +58,11 @@
 class Device(object):
     def __init__(self, conf, log, **kwargs):
         for attr, value in kwargs.iteritems():
-            setattr(self, attr, value)
+            try:
+                setattr(self, attr, value)
+            except:
+                # skip read-only poperties
+                pass
         self.conf = conf
         self.log = log
 


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

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

Reply via email to