mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-01 05:49:09 -07: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:
|
if 'stdout' in data and 'stdout_lines' not in data:
|
||||||
data['stdout_lines'] = data.get('stdout', u'').splitlines()
|
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))
|
display.debug("done with _execute_module (%s, %s)" % (module_name, module_args))
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue