From 634e83ab63f60c1ca70773cabbccb7b38b5e9ae6 Mon Sep 17 00:00:00 2001 From: Pam Selle <204372+pselle@users.noreply.github.com> Date: Fri, 25 Sep 2020 10:22:56 -0400 Subject: [PATCH] Change sensitivity warning to be yellow only on 'Warning' --- command/format/diff.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/command/format/diff.go b/command/format/diff.go index 815899058..66367dc84 100644 --- a/command/format/diff.go +++ b/command/format/diff.go @@ -1315,17 +1315,17 @@ func (p *blockBodyDiffPrinter) writeSensitivityWarning(old, new cty.Value, inden if new.IsMarked() && !old.IsMarked() { p.buf.WriteString(strings.Repeat(" ", indent)) - p.buf.WriteString(p.color.Color("[yellow]# Warning: this attribute value will be marked as sensitive and will\n")) + p.buf.WriteString(p.color.Color("# [yellow]Warning:[reset] this attribute value will be marked as sensitive and will\n")) p.buf.WriteString(strings.Repeat(" ", indent)) - p.buf.WriteString(p.color.Color("[yellow]# not display in UI output after applying this change[reset]\n")) + p.buf.WriteString(p.color.Color("# not display in UI output after applying this change\n")) } // Note if changing this attribute will change its sensitivity if old.IsMarked() && !new.IsMarked() { p.buf.WriteString(strings.Repeat(" ", indent)) - p.buf.WriteString(p.color.Color("[yellow]# Warning: this attribute value will no longer be marked as sensitive\n")) + p.buf.WriteString(p.color.Color("# [yellow]Warning:[reset] this attribute value will no longer be marked as sensitive\n")) p.buf.WriteString(strings.Repeat(" ", indent)) - p.buf.WriteString(p.color.Color("[yellow]# after applying this change[reset]\n")) + p.buf.WriteString(p.color.Color("# after applying this change\n")) } }