mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-14 23:00:49 +01: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]
|
return [value]
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
return list(value)
|
return map(str, value)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return [str(value)]
|
return [str(value)]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user