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:
parent
7f1c43e597
commit
85194234ba
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue