Slightly trim down the warnings list based on some things being pretty common

for local usage.
This commit is contained in:
Michael DeHaan 2014-08-22 15:25:57 -04:00
commit fcb610dec4
3 changed files with 9 additions and 2 deletions

View file

@ -537,7 +537,7 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
display(msg, color='yellow', runner=self.runner)
if constants.COMMAND_WARNINGS and 'warnings' in host_result2 and host_result2['warnings']:
for warning in host_result2['warnings']:
display("warn: %s" % warning, color='purple', runner=self.runner)
display("warning: %s" % warning, color='purple', runner=self.runner)
super(PlaybookRunnerCallbacks, self).on_ok(host, host_result)
def on_skipped(self, host, item=None):