WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix XendVnet xenstore export

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix XendVnet xenstore export
From: Mike Wray <mike.wray@xxxxxx>
Date: Fri, 10 Feb 2006 14:14:47 +0000
Delivery-date: Fri, 10 Feb 2006 14:28:28 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5 (X11/20051201)
The code to export the vnet config to xenstore had arguments
missing from a call to sxp.to_string() and was trying to
export the function instead. The patch adds the necessary argument.

Mike
# HG changeset patch
# User mjw@xxxxxxxxxxxxxxxxxxx
# Node ID 60ebb017ce496f7ba9775be8650a1757c6f9cbab
# Parent  a6ef0eb9dfd77a84616896e7149a4c9aad5cc84c
Fix exporting vnet config to xenstore.

Signed-off-by: Mike Wray <mike.wray@xxxxxx>

diff -r a6ef0eb9dfd7 -r 60ebb017ce49 tools/python/xen/xend/XendVnet.py
--- a/tools/python/xen/xend/XendVnet.py Thu Feb  9 14:26:22 2006
+++ b/tools/python/xen/xend/XendVnet.py Fri Feb 10 14:10:34 2006
@@ -63,7 +63,7 @@
         to_store = {
             'id' : self.id,
             'dbid' : self.dbid,
-            'config' : sxp.to_string
+            'config' : sxp.to_string(self.config)
             }
         xstransact.Write(self.dbpath, to_store)
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>