Skip to content

Commit

Permalink
Format 'replace' as red as well since it's just as dangerous as 'dest…
Browse files Browse the repository at this point in the history
…roy'.

Fixes #1458.
  • Loading branch information
rix0rrr committed Jan 14, 2019
1 parent f0975c1 commit e4fec19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cloudformation-diff/lib/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Formatter {
case ResourceImpact.MAY_REPLACE:
return colors.italic(colors.yellow('may be replaced'));
case ResourceImpact.WILL_REPLACE:
return colors.italic(colors.bold(colors.yellow('replace')));
return colors.italic(colors.bold(colors.red('replace')));
case ResourceImpact.WILL_DESTROY:
return colors.italic(colors.bold(colors.red('destroy')));
case ResourceImpact.WILL_ORPHAN:
Expand Down

0 comments on commit e4fec19

Please sign in to comment.