mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix calling deprecate with correct arguments (#44726)
This fixes #44702
This commit is contained in:
@@ -2327,6 +2327,8 @@ class AnsibleModule(object):
|
||||
for d in kwargs['deprecations']:
|
||||
if isinstance(d, SEQUENCETYPE) and len(d) == 2:
|
||||
self.deprecate(d[0], version=d[1])
|
||||
elif isinstance(d, Mapping):
|
||||
self.deprecate(d['msg'], version=d.get('version', None))
|
||||
else:
|
||||
self.deprecate(d)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user