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

(cherry picked from commit 9ea5bb3364)
pull/67986/head
Brian Coca 5 years ago committed by GitHub
parent afb389e588
commit 9c17410f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save