[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix missing import, and a small tidyup.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1168000360 0
# Node ID ea493d9b82dfbeba7b97acbaea12de99d3ca0bc8
# Parent  269a08123d8769ac57fd78f9228904dc0afa51e3
Fix missing import, and a small tidyup.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/create.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 269a08123d87 -r ea493d9b82df tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Fri Jan 05 12:31:49 2007 +0000
+++ b/tools/python/xen/xm/create.py     Fri Jan 05 12:32:40 2007 +0000
@@ -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, verbos
         try:
             domain_label = security.ssidref2label(security.NULL_SSIDREF)
         except:
+            import traceback
             traceback.print_exc(limit=1)
             return 0
         domain_policy = 'NULL'

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.