mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
importing/not-importing methods should be colorized
This commit is contained in:
parent
d3e8e8ff54
commit
8d7f526df6
1 changed files with 4 additions and 2 deletions
|
@ -378,11 +378,13 @@ class PlaybookCallbacks(object):
|
||||||
|
|
||||||
def on_import_for_host(self, host, imported_file):
|
def on_import_for_host(self, host, imported_file):
|
||||||
|
|
||||||
print "%s: importing %s" % (host, imported_file)
|
msg = "%s: importing %s" % (host, imported_file)
|
||||||
|
print stringc(msg, 'blue')
|
||||||
|
|
||||||
def on_not_import_for_host(self, host, missing_file):
|
def on_not_import_for_host(self, host, missing_file):
|
||||||
|
|
||||||
print "%s: not importing file: %s" % (host, missing_file)
|
msg = "%s: not importing file: %s" % (host, missing_file)
|
||||||
|
print stringc(msg, 'blue')
|
||||||
|
|
||||||
def on_play_start(self, pattern):
|
def on_play_start(self, pattern):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue