backend/server/rhnVirtualization.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 7cdd2dd93f7fe05da6aab3e8b104bb3aa0d23801
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Dec 7 13:52:02 2009 +0100
543509 - do not fail if machine has not uuid set (like qemu)
diff --git a/backend/server/rhnVirtualization.py b/backend/server/rhnVirtualization.py
index 2b03705..230e145 100644
--- a/backend/server/rhnVirtualization.py
+++ b/backend/server/rhnVirtualization.py
@@ -752,7 +752,10 @@ class VirtualizationEventHandler:
if properties.has_key(PropertyType.UUID):
uuid = properties[PropertyType.UUID]
if uuid:
- uuid_as_number = string.atol(uuid, 16)
+ if uuid == 'Not Settable':
+ uuid_as_number = 0
+ else:
+ uuid_as_number = string.atol(uuid, 16)
if uuid_as_number == 0:
# If the UUID is a bunch of null bytes, we will convert it
Show replies by date