mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
clean up empty warnings/deprecations from modules
This commit is contained in:
parent
10d1865880
commit
16615811b4
1 changed files with 5 additions and 0 deletions
|
@ -680,6 +680,11 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|||
if 'stdout' in data and 'stdout_lines' not in data:
|
||||
data['stdout_lines'] = data.get('stdout', u'').splitlines()
|
||||
|
||||
# remove bad/empty internal keys
|
||||
for key in ['warnings', 'deprecations']:
|
||||
if key in data and not data[key]:
|
||||
del data[key]
|
||||
|
||||
display.debug("done with _execute_module (%s, %s)" % (module_name, module_args))
|
||||
return data
|
||||
|
||||
|
|
Loading…
Reference in a new issue