From 2094326c10c310e0473896cc401ec2024292e411 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 26 Jul 2014 19:54:09 -0700 Subject: [PATCH] command: plan that requires destroy and new is "-/+" --- command/format_plan.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/command/format_plan.go b/command/format_plan.go index 6ebf2ecc8..0b17e9a26 100644 --- a/command/format_plan.go +++ b/command/format_plan.go @@ -42,7 +42,10 @@ func FormatPlan(p *terraform.Plan, c *colorstring.Colorize) string { // resource header. color := "yellow" symbol := "~" - if rdiff.RequiresNew() { + if rdiff.RequiresNew() && rdiff.Destroy { + color = "green" + symbol = "-/+" + } else if rdiff.RequiresNew() { color = "green" symbol = "+" } else if rdiff.Destroy {