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

[Xen-changelog] [xen-unstable] [XEND] Prevent None values from appearing in Device SXP



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID dcca88fc849cc5ca56f178bce61cf3abe431e83f
# Parent  4ce643274b67c3aaea83ecd3f2f7133c0d599b88
[XEND] Prevent None values from appearing in Device SXP

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/server/DevController.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -r 4ce643274b67 -r dcca88fc849c 
tools/python/xen/xend/server/DevController.py
--- a/tools/python/xen/xend/server/DevController.py     Thu Dec 07 14:03:54 
2006 +0000
+++ b/tools/python/xen/xend/server/DevController.py     Thu Dec 07 14:38:16 
2006 +0000
@@ -226,9 +226,11 @@ class DevController:
         for key, val in configDict.items():
             if isinstance(val, (types.ListType, types.TupleType)):
                 for v in val:
-                    sxpr.append([key, v])
+                    if v != None:
+                        sxpr.append([key, v])
             else:
-                sxpr.append([key, val])
+                if val != None:
+                    sxpr.append([key, val])
         return sxpr
 
     def sxprs(self):

_______________________________________________
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®.