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-changelog

[Xen-changelog] [xen-unstable] [XEND] Make sure UUID in state store are

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Make sure UUID in state store are not stored as unicode
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Jan 2007 08:55:19 -0800
Delivery-date: Thu, 25 Jan 2007 08:57:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Date 1169647086 0
# Node ID 6a54b1d8d1053c4facfef8c3c1da871950a5b29c
# Parent  f06f8e134c4829f9583f6f15da828b2e24f1a89d
[XEND] Make sure UUID in state store are not stored as unicode
objects.

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendStateStore.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r f06f8e134c48 -r 6a54b1d8d105 tools/python/xen/xend/XendStateStore.py
--- a/tools/python/xen/xend/XendStateStore.py   Wed Jan 24 13:54:37 2007 +0000
+++ b/tools/python/xen/xend/XendStateStore.py   Wed Jan 24 13:58:06 2007 +0000
@@ -107,7 +107,7 @@ class XendStateStore:
             if child.nodeType != Node.ELEMENT_NODE:
                 continue # skip non element nodes
                 
-            uuid = child.getAttribute('uuid')
+            uuid = child.getAttribute('uuid').encode('utf8')
             cls_dict = {}
             for val_elem in child.childNodes:
                 if val_elem.nodeType != Node.ELEMENT_NODE:

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Make sure UUID in state store are not stored as unicode, Xen patchbot-unstable <=