mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
fix command warnings, add action warnings (#34060)
* fix command warnings, add action warnings
This commit is contained in:
parent
94d952f94b
commit
a0c171ce1b
5 changed files with 24 additions and 4 deletions
|
@ -125,7 +125,7 @@ class CallbackBase(AnsiblePlugin):
|
|||
|
||||
def _handle_warnings(self, res):
|
||||
''' display warnings, if enabled and any exist in the result '''
|
||||
if C.COMMAND_WARNINGS:
|
||||
if C.ACTION_WARNINGS:
|
||||
if 'warnings' in res and res['warnings']:
|
||||
for warning in res['warnings']:
|
||||
self._display.warning(warning)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue