From ad4d16c0345e0dc3c24938e39e3e17159df96d7a Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Thu, 19 Apr 2012 21:13:53 -0600 Subject: [PATCH] Test returns are yellow --- salt/output.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/salt/output.py b/salt/output.py index 94f6adc0a0..4d0d07f099 100644 --- a/salt/output.py +++ b/salt/output.py @@ -98,9 +98,12 @@ class HighStateOutputter(Outputter): tcolor = colors['GREEN'] if ret['changes']: tcolor = colors['CYAN'] - if not ret['result']: + if ret['result'] is False: hcolor = colors['RED'] tcolor = colors['RED'] + if ret['result'] is None: + hcolor = colors['YELLOW'] + tcolor = colors['YELLOW'] comps = tname.split('_|-') hstrs.append(('{0}----------\n State: - {1}{2[ENDC]}' .format(tcolor, comps[0], colors)))