mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Change uuid string format to match that outputted by Xen.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
08006b1a91
commit
81f77d8400
1 file changed
+1
-2
@@ -54,8 +54,7 @@ def create():
|
||||
|
||||
|
||||
def toString(u):
|
||||
f = "%02x"
|
||||
return ( "-".join([f*4, f*2, f*2, f*2, f*6]) % tuple(u) )
|
||||
return "-".join(["%02x" * 4] * 4) % tuple(u)
|
||||
|
||||
def fromString(s):
|
||||
s = s.replace('-', '')
|
||||
|
||||