diff options
author | Matt Martz <matt@sivel.net> | 2018-08-20 16:26:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 16:26:10 -0500 |
commit | 617372f8c0103c0f508f640bbb2f9f4a1fc85957 (patch) | |
tree | c397f7dcfba2d564e585b8eb8f2fd55cda535b47 /lib/ansible/playbook/base.py | |
parent | b7139782cfa7d631a204c38021e4ed59e9e5d956 (diff) | |
download | ansible-617372f8c0103c0f508f640bbb2f9f4a1fc85957.tar.gz |
Mass nuke deprecated items that are easily removed. ci_complete (#44320)
Diffstat (limited to 'lib/ansible/playbook/base.py')
-rw-r--r-- | lib/ansible/playbook/base.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py index daaa7c1065..6ac2c86c47 100644 --- a/lib/ansible/playbook/base.py +++ b/lib/ansible/playbook/base.py @@ -382,18 +382,11 @@ class FieldAttributeBase(with_metaclass(BaseMeta, object)): if isinstance(value, string_types) and '%' in value: value = value.replace('%', '') value = float(value) - elif attribute.isa in ('list', 'barelist'): + elif attribute.isa == 'list': if value is None: value = [] elif not isinstance(value, list): - if isinstance(value, string_types) and attribute.isa == 'barelist': - display.deprecated( - "Using comma separated values for a list has been deprecated. " - "You should instead use the correct YAML syntax for lists. " - ) - value = value.split(',') - else: - value = [value] + value = [value] if attribute.listof is not None: for item in value: if not isinstance(item, attribute.listof): |