strip spaces for each value in host list lists (#67701)
This commit is contained in:
parent
726d6455d8
commit
9ea5bb3364
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/pathlist_strip.yml
Normal file
2
changelogs/fragments/pathlist_strip.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- also strip spaces around config values in pathlist as we do in list types
|
|
@ -137,7 +137,7 @@ def ensure_type(value, value_type, origin=None):
|
|||
|
||||
elif value_type == 'pathlist':
|
||||
if isinstance(value, string_types):
|
||||
value = value.split(',')
|
||||
value = [x.strip() for x in value.split(',')]
|
||||
|
||||
if isinstance(value, Sequence):
|
||||
value = [resolve_path(x, basedir=basedir) for x in value]
|
||||
|
|
Loading…
Reference in a new issue