ia64/xen-unstable

changeset 13274:ea493d9b82df

Fix missing import, and a small tidyup.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Jan 05 12:32:40 2007 +0000 (2007-01-05)
parents 269a08123d87
children 58efd34d0837
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Fri Jan 05 12:31:49 2007 +0000
     1.2 +++ b/tools/python/xen/xm/create.py	Fri Jan 05 12:32:40 2007 +0000
     1.3 @@ -823,7 +823,7 @@ def preprocess_ioports(vals):
     1.4          if len(d) == 1:
     1.5              d.append(d[0])
     1.6          # Components are in hex: add hex specifier.
     1.7 -        hexd = map(lambda v: '0x'+v, d)
     1.8 +        hexd = ['0x' + x for x in d]
     1.9          ioports.append(hexd)
    1.10      vals.ioports = ioports
    1.11          
    1.12 @@ -1176,6 +1176,7 @@ def config_security_check(config, verbos
    1.13          try:
    1.14              domain_label = security.ssidref2label(security.NULL_SSIDREF)
    1.15          except:
    1.16 +            import traceback
    1.17              traceback.print_exc(limit=1)
    1.18              return 0
    1.19          domain_policy = 'NULL'