1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixed bad copy/paste, deprecations should deprecate

This commit is contained in:
Brian Coca 2017-02-13 10:37:29 -05:00
parent 7f1c43e597
commit 85194234ba

View file

@ -1955,7 +1955,7 @@ class AnsibleModule(object):
if 'deprecations' in kwargs:
if isinstance(kwargs['deprecations'], list):
for d in kwargs['deprecations']:
self.warn(d)
self.deprecate(d)
else:
self.warn(kwargs['deprecations'])