mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
fix command warnings, add action warnings (#34060)
* fix command warnings, add action warnings
This commit is contained in:
committed by
Toshio Kuratomi
parent
94d952f94b
commit
a0c171ce1b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user