1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01:00

list_or_string: ensure that elements of a list are always strings

This commit is contained in:
Sergei Trofimov 2016-05-26 16:03:40 +01:00
parent e5c228bab2
commit a9a42164a3

View File

@ -169,7 +169,7 @@ def list_or_string(value):
return [value]
else:
try:
return list(value)
return map(str, value)
except ValueError:
return [str(value)]