mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 12:28:44 +00:00
list_or_string: ensure that elements of a list are always strings
This commit is contained in:
parent
e5c228bab2
commit
a9a42164a3
@ -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