mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 03:12:34 +01:00
list_or_string: ensure that elements of a list are always strings
This commit is contained in:
@@ -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)]
|
||||
|
||||
|
Reference in New Issue
Block a user