1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

Merge pull request #171 from setrofim/master

list_or_string: ensure that elements of a list are always strings
This commit is contained in:
Sebastian Goscik 2016-05-26 16:07:22 +01:00
commit 5e1c9694e7

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)]