Fix missing import, and a small tidyup.
authorEwan Mellor <ewan@xensource.com>
Fri, 5 Jan 2007 12:32:40 +0000 (12:32 +0000)
committerEwan Mellor <ewan@xensource.com>
Fri, 5 Jan 2007 12:32:40 +0000 (12:32 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/create.py

index 140b6f7749f4e091e27c1652d887c7c48bec350d..1726979aaa8845290170eba6dd275f318c999bc1 100644 (file)
@@ -823,7 +823,7 @@ def preprocess_ioports(vals):
         if len(d) == 1:
             d.append(d[0])
         # Components are in hex: add hex specifier.
-        hexd = map(lambda v: '0x'+v, d)
+        hexd = ['0x' + x for x in d]
         ioports.append(hexd)
     vals.ioports = ioports
         
@@ -1176,6 +1176,7 @@ def config_security_check(config, verbose):
         try:
             domain_label = security.ssidref2label(security.NULL_SSIDREF)
         except:
+            import traceback
             traceback.print_exc(limit=1)
             return 0
         domain_policy = 'NULL'