[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix read of integers from database on event channel restore.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID cda48f530e93409b4808b57355e8a1dbd52a29d8
# Parent  c6c6cfaab2bfb0ca9fed4f354b8aec5bdc930dcb
Fix read of integers from database on event channel restore.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r c6c6cfaab2bf -r cda48f530e93 tools/python/xen/xend/server/channel.py
--- a/tools/python/xen/xend/server/channel.py   Wed Jul 27 17:03:00 2005
+++ b/tools/python/xen/xend/server/channel.py   Wed Jul 27 17:04:47 2005
@@ -42,16 +42,16 @@
         @param port2
         """
         try:
-            dom1  = int(db['dom1'])
+            dom1  = int(db['dom1'].getData())
         except: pass
         try:
-            dom2  = int(db['dom2'])
+            dom2  = int(db['dom2'].getData())
         except: pass
         try:
-            port1 = int(db['port1'])
+            port1 = int(db['port1'].getData())
         except: pass
         try:
-            port2 = int(db['port2'])
+            port2 = int(db['port2'].getData())
         except: pass
         evtchn = cls.interdomain(dom1, dom2, port1=port1, port2=port2)
         return evtchn

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.