mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Use six.string_types
This commit is contained in:
parent
d7362bb5dd
commit
4b7ef52736
@ -699,7 +699,7 @@ def _validate_str_list(arg):
|
||||
'''
|
||||
ensure ``arg`` is a list of strings
|
||||
'''
|
||||
if isinstance(arg, string_types):
|
||||
if isinstance(arg, six.string_types):
|
||||
return [arg]
|
||||
elif isinstance(arg, Iterable) and not isinstance(arg, Mapping):
|
||||
return [str(item) for item in arg]
|
||||
|
Loading…
Reference in New Issue
Block a user