command: plan that requires destroy and new is "-/+"

This commit is contained in:
Mitchell Hashimoto 2014-07-26 19:54:09 -07:00
parent da539caf0a
commit 2094326c10
1 changed files with 4 additions and 1 deletions

View File

@ -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 {