ia64/xen-unstable

changeset 8105:7638cf95b63c

Change uuid string format to match that outputted by Xen.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Nov 28 16:48:25 2005 +0000 (2005-11-28)
parents d8786656ebab
children 243265ade404
files tools/python/xen/xend/uuid.py
line diff
     1.1 --- a/tools/python/xen/xend/uuid.py	Mon Nov 28 12:21:17 2005 +0000
     1.2 +++ b/tools/python/xen/xend/uuid.py	Mon Nov 28 16:48:25 2005 +0000
     1.3 @@ -54,8 +54,7 @@ def create():
     1.4  
     1.5  
     1.6  def toString(u):
     1.7 -    f = "%02x"
     1.8 -    return ( "-".join([f*4, f*2, f*2, f*2, f*6]) % tuple(u) )
     1.9 +    return "-".join(["%02x" * 4] * 4) % tuple(u)
    1.10  
    1.11  def fromString(s):
    1.12      s = s.replace('-', '')