fix command warnings, add action warnings (#34060)

* fix command warnings, add action warnings
This commit is contained in:
Brian Coca 2017-12-21 11:35:32 -05:00 committed by Toshio Kuratomi
parent 94d952f94b
commit a0c171ce1b
5 changed files with 24 additions and 4 deletions

View file

@ -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)