interactive_demo/ansible/callback/selective.py
def colorize(msg, color):
    """Given a string add necessary codes to format the string."""
    if DONT_COLORIZE:
        return msg
    else:
        return "{}{}{}".format(COLORS[color], msg, COLORS["endc"])
def colorize(msg, color):
    """Given a string add necessary codes to format the string."""
    if DONT_COLORIZE:
        return msg
    else:
        return "{}{}{}".format(COLORS[color], msg, COLORS["endc"])
Given a string add necessary codes to format the string.