Merge #3136: Colorize the 'forces new resource' message

This commit is contained in:
Martin Atkins 2015-10-22 08:44:37 -07:00
commit e4e9c13c20
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
## 0.6.6 (Unreleased) ## 0.6.6 (Unreleased)
IMPROVEMENTS:
* "forces new resource" now highlighted in plan output [GH-3136]
## 0.6.5 (October 21, 2015) ## 0.6.5 (October 21, 2015)
FEATURES: FEATURES:

View File

@ -131,7 +131,7 @@ func formatPlanModuleExpand(
newResource := "" newResource := ""
if attrDiff.RequiresNew && rdiff.Destroy { if attrDiff.RequiresNew && rdiff.Destroy {
newResource = " (forces new resource)" newResource = opts.Color.Color(" [red](forces new resource)")
} }
buf.WriteString(fmt.Sprintf( buf.WriteString(fmt.Sprintf(