strip spaces for each value in host list lists (#67701)

This commit is contained in:
Brian Coca 2020-02-25 09:16:27 -05:00 committed by GitHub
parent 726d6455d8
commit 9ea5bb3364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- also strip spaces around config values in pathlist as we do in list types

View file

@ -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]