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

pull/67744/head
Brian Coca 5 years ago committed by GitHub
parent 726d6455d8
commit 9ea5bb3364
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