mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
fixed bad copy/paste, deprecations should deprecate
This commit is contained in:
@@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user