ia64/xen-unstable

changeset 13598:6a54b1d8d105

[XEND] Make sure UUID in state store are not stored as unicode
objects.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Wed Jan 24 13:58:06 2007 +0000 (2007-01-24)
parents f06f8e134c48
children bea3d48576c6
files tools/python/xen/xend/XendStateStore.py
line diff
     1.1 --- a/tools/python/xen/xend/XendStateStore.py	Wed Jan 24 13:54:37 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendStateStore.py	Wed Jan 24 13:58:06 2007 +0000
     1.3 @@ -107,7 +107,7 @@ class XendStateStore:
     1.4              if child.nodeType != Node.ELEMENT_NODE:
     1.5                  continue # skip non element nodes
     1.6                  
     1.7 -            uuid = child.getAttribute('uuid')
     1.8 +            uuid = child.getAttribute('uuid').encode('utf8')
     1.9              cls_dict = {}
    1.10              for val_elem in child.childNodes:
    1.11                  if val_elem.nodeType != Node.ELEMENT_NODE: