direct-io.hg

changeset 12785:dcca88fc849c

[XEND] Prevent None values from appearing in Device SXP

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Thu Dec 07 14:38:16 2006 +0000 (2006-12-07)
parents 4ce643274b67
children 93314655b16f
files tools/python/xen/xend/server/DevController.py
line diff
     1.1 --- a/tools/python/xen/xend/server/DevController.py	Thu Dec 07 14:03:54 2006 +0000
     1.2 +++ b/tools/python/xen/xend/server/DevController.py	Thu Dec 07 14:38:16 2006 +0000
     1.3 @@ -226,9 +226,11 @@ class DevController:
     1.4          for key, val in configDict.items():
     1.5              if isinstance(val, (types.ListType, types.TupleType)):
     1.6                  for v in val:
     1.7 -                    sxpr.append([key, v])
     1.8 +                    if v != None:
     1.9 +                        sxpr.append([key, v])
    1.10              else:
    1.11 -                sxpr.append([key, val])
    1.12 +                if val != None:
    1.13 +                    sxpr.append([key, val])
    1.14          return sxpr
    1.15  
    1.16      def sxprs(self):