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'])