Commit e58b02c7 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add condition to support dictionary. This fix was needed to support Slave...

Add condition to support dictionary. This fix was needed to support Slave Instance inside parameter_dict because each Slave Instance is one dictonary
parent 6e8579dd
......@@ -253,6 +253,9 @@ def _syncComputerPartitionInformation(func):
for elt in inv:
if isinstance(elt, (list, tuple)):
new_inv.append([x.encode('utf-8') for x in elt])
elif isinstance(elt, dict):
new_inv.append(dict([(x.encode('utf-8'),
y and y.encode("utf-8")) for x,y in elt.iteritems()]))
else:
new_inv.append(elt.encode('utf-8'))
new_dict[ink.encode('utf-8')] = new_inv
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment