mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[XEND] Prevent None values from appearing in Device SXP
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
bd52f01c26
commit
6fe80e69d0
1 file changed
+4
-2
@@ -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):
|
||||
|
||||