mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
Fix UnboundLocalError in basic.py
* Fix for UnboundLocalError while accessing deprecations in result * Add Unit test Fixes #24592 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
9f3a405706
commit
764b4b20ec
2 changed files with 19 additions and 1 deletions
|
@ -1999,7 +1999,7 @@ class AnsibleModule(object):
|
|||
else:
|
||||
self.deprecate(d)
|
||||
else:
|
||||
self.deprecate(d)
|
||||
self.deprecate(kwargs['deprecations'])
|
||||
|
||||
if self._deprecations:
|
||||
kwargs['deprecations'] = self._deprecations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue