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:
commit
5e1c9694e7
@ -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)]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user