blue on black, tears on a river, push on a shove, it don't mean much

(make colorized playbook runs not suck on black terminals)
This commit is contained in:
Michael DeHaan 2012-07-25 20:29:20 -04:00
parent 2030f82bf2
commit e035ce97ce
3 changed files with 6 additions and 7 deletions

View file

@ -328,12 +328,12 @@ class PlaybookRunnerCallbacks(DefaultRunnerCallbacks):
if self._async_notified[jid] > clock:
self._async_notified[jid] = clock
msg = "<job %s> polling, %ss remaining"%(jid, clock)
print stringc(msg, 'blue')
print stringc(msg, 'cyan')
def on_async_ok(self, host, res, jid):
msg = "<job %s> finished on %s"%(jid, host)
print stringc(msg, 'blue')
print stringc(msg, 'cyan')
def on_async_failed(self, host, res, jid):
@ -379,12 +379,12 @@ class PlaybookCallbacks(object):
def on_import_for_host(self, host, imported_file):
msg = "%s: importing %s" % (host, imported_file)
print stringc(msg, 'blue')
print stringc(msg, 'cyan')
def on_not_import_for_host(self, host, missing_file):
msg = "%s: not importing file: %s" % (host, missing_file)
print stringc(msg, 'blue')
print stringc(msg, 'cyan')
def on_play_start(self, pattern):